Re: CREATE CAST code review

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: CREATE CAST code review
Date: 2002-07-22 20:06:22
Message-ID: 29886.1027368382@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2002-07-22 21:39:13 Re: [PATCHES] prepareable statements
Previous Message Peter Eisentraut 2002-07-22 18:35:56 Re: CREATE CAST code review