Re: CREATE OR REPLACE FUNCTION vs ownership

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE OR REPLACE FUNCTION vs ownership
Дата
Msg-id 636.1254501548@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CREATE OR REPLACE FUNCTION vs ownership  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: CREATE OR REPLACE FUNCTION vs ownership
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: latest hstore patch