Re: Anticipatory privileges

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Anticipatory privileges
Дата
Msg-id
19787.1171731450@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Anticipatory privileges "John D. Burger" <john@mitre.org>
Re: Anticipatory privileges Alvaro Herrera <alvherre@commandprompt.com>
Re: Anticipatory privileges "John D. Burger" <john@mitre.org>
Re: Anticipatory privileges Tom Lane <tgl@sss.pgh.pa.us>
Re: Anticipatory privileges "John D. Burger" <john@mitre.org>
Re: Anticipatory privileges John DeSoi <desoi@pgedit.com>
"John D. Burger"  writes:
> How dangerous is it to UPDATE pg_class  
> directly, perhaps copying the relacl column for a table that I've  
> done by hand with GRANT.

You can do it, and it will seem to work.  However, unless you also make
entries in pg_shdepend, bad things will happen if you later drop any of
the users mentioned in the ACL.  Your code will also be vulnerable to
breakage in future releases if we change any of these details.

A better approach is to write a plpgsql function that assembles and
EXECUTEs the required GRANT commands.

			regards, tom lane
В списке pgsql-general по дате отправления
От: John D. Burger
Дата:
Сообщение: Re: Anticipatory privileges
От: Karen Hill
Дата:
FAQ