Re: CREATE OR REPLACE FUNCTION vs ownership - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CREATE OR REPLACE FUNCTION vs ownership
Date
Msg-id 636.1254501548@sss.pgh.pa.us
Whole thread Raw
In response to CREATE OR REPLACE FUNCTION vs ownership  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> Whichever way you think it should work, there's a bug here that goes
> back several versions, and I rather suspect we may have the same issue
> for other REPLACE-type commands ...

BTW, I looked around for related problems and don't see any.  We only
have CREATE OR REPLACE for functions, rules, and views.  Rules don't
have any permissions or shared dependencies of their own.  CREATE OR
REPLACE VIEW really does work like an ALTER --- it optionally
adds some columns, and then does a REPLACE RULE on the view rule.

I think we do have a documentation problem for CREATE OR REPLACE VIEW
too, in that it ought to mention explicitly that permissions and
non-SELECT rules for the view remain in place.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: CREATE OR REPLACE FUNCTION vs ownership
Next
From: Alvaro Herrera
Date:
Subject: Re: latest hstore patch