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

From Tom Lane
Subject Re: CREATE CAST code review
Date
Msg-id 29886.1027368382@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE CAST code review  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: CREATE CAST code review
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> That doesn't quite work, because then no ordinary user can define a cast
> from some built-in type to his own type.  What I'm thinking about is to
> implement the USAGE privilege on types, and then you need to have that to
> be allowed to create casts.

Still seems too weak.  What about requiring ownership of at least one
of the types?

> I'm not sure about the implications of associating objects with schemas in
> pg_dump.  I suppose there might be an option to dump only certain schemas,

That is the intention (it's not implemented yet).
        regards, tom lane


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: Re: [PATCHES] prepareable statements