Re: [HACKERS] CREATE CAST WITHOUT FUNCTION should require superuserness?

2002-08-21 Thread Peter Eisentraut
Tom Lane writes: Okay. Are you intending to work on it? I was thinking of doing some cleanup work in parse_coerce, but will refrain from joggling your elbow if you're going to deal with it. Feel free. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of

Re: [HACKERS] CREATE CAST WITHOUT FUNCTION should require superuserness?

2002-08-20 Thread Peter Eisentraut
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

Re: [HACKERS] CREATE CAST WITHOUT FUNCTION should require superuserness?

2002-08-20 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: Tom Lane writes: 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

[HACKERS] CREATE CAST WITHOUT FUNCTION should require superuserness?

2002-08-19 Thread Tom Lane
CREATE CAST WITHOUT FUNCTION is capable of creating binary equivalences that will crash the backend when used (eg, between pass-by-value and pass-by-reference datatypes). The existing restriction that you must own one of the datatypes hardly seems like an adequate permissions check ...