Re: pg_dump and REVOKE on function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump and REVOKE on function
Дата
Msg-id 16611.1060722952@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump and REVOKE on function  (Rod Taylor <rbt@rbt.ca>)
Ответы Re: pg_dump and REVOKE on function  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> r=# REVOKE ALL ON FUNCTION weekdate (date) FROM PUBLIC;
> REVOKE
> r=# GRANT ALL ON FUNCTION weekdate (date) TO PUBLIC;
> GRANT
> r=# REVOKE ALL ON FUNCTION weekdate (date) FROM rbt;
> ERROR:  dependent privileges exist
> HINT:  Use CASCADE to revoke them too.

Ugh.  We could fix pg_dump to output the commands in a better order,
but that won't help for dumps from existing releases.

Given that rbt is the owner of the object, I'm not sure that it is
sensible to interpret the above as revoking his ability to grant
privileges to others.  Seems to me that his ability to GRANT is inherent
in being the owner, and as such his "grant option" bits are irrelevant.
So maybe the commands are okay and the backend's interpretation is
bogus.

Peter, any thoughts?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Parsing speed (was Re: pgstats_initstats() cost)
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: reuse sysids security hole?