Re: CREATE CAST code review - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: CREATE CAST code review
Date
Msg-id Pine.LNX.4.44.0207252337030.1144-100000@localhost.localdomain
Whole thread Raw
In response to Re: CREATE CAST code review  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
Zeugswetter Andreas SB SD writes:

> >  What about requiring ownership of at least one
> > of the types?
>
> I was thinking that too, but, would it be possible to circumvent such
> a restriction with a "type in the middle" attack ?
> Create your own type and then
> 1. (auto)cast type1 to own type
> 2. (auto)cast own type to type2 ?

But that doesn't affect casts between type1 and type2.  PostgreSQL doesn't
do indirect casts.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: CREATE CAST code review
Next
From: nconway@klamath.dyndns.org (Neil Conway)
Date:
Subject: sub-selects in CHECK