Re: CREATE CAST WITHOUT FUNCTION should require superuserness?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: CREATE CAST WITHOUT FUNCTION should require superuserness?
Date: 2002-08-20 17:58:56
Message-ID: Pine.LNX.4.44.0208200018490.838-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-08-20 18:03:18 Large file support available
Previous Message Tom Lane 2002-08-20 16:40:52 Re: Build failure in current CVS (src/backend/utils/mb/conversion_procs)