Re: CREATE CAST WITHOUT FUNCTION should require superuserness? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: CREATE CAST WITHOUT FUNCTION should require superuserness?
Date
Msg-id Pine.LNX.4.44.0208200018490.838-100000@localhost.localdomain
Whole thread Raw
In response to CREATE CAST WITHOUT FUNCTION should require superuserness?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CREATE CAST WITHOUT FUNCTION should require superuserness?
List pgsql-hackers
Tom Lane writes:

> I think it might be a good idea to require superuser permissions to
> create a binary-equivalence cast.

OK

> Also, in the present state of the code a WITHOUT FUNCTION cast does
> not work if AS ASSIGNMENT isn't given: parse_coerce.c won't ever find
> it.  Is this intentional, or just an oversight?

It's a transition state that might be inadequately documented.  In the
near future the code should be restructured to allow for non-implicit
binary compatible casts.  But currently there are not candidates for that
anyway.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Build failure in current CVS (src/backend/utils/mb/conversion_procs)
Next
From: Peter Eisentraut
Date:
Subject: Large file support available