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