Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
Дата
Msg-id 20150401210755.GS3663@tamriel.snowman.net
обсуждение исходный текст
Ответ на BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing  (tyler.hale@capitalone.com)
Ответы Re: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing  ("Hale, Tyler" <Tyler.Hale@capitalone.com>)
Список pgsql-bugs
Tyler,

* tyler.hale@capitalone.com (tyler.hale@capitalone.com) wrote:
> Running a GRANT ALL ON ALL SEQUENCES IN PUBLIC SCHEMA doesn't work when the
> sequence is created after running the GRANT statement regardless of whether
> the sequence was created implicitly or explicitly.

GRANT ALL only operates against objects which already exist.

If you wish to set default privileges, use ALTER DEFAULT PRIVILEGES.
Those will then apply for newly created objects.

    Thanks!

        Stephen

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

Предыдущее
От: tyler.hale@capitalone.com
Дата:
Сообщение: BUG #12939: GRANT ALL ON ALL SEQUENCES doesn't work for sequences not yet existing
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: 9.4 and reproducible "ERROR: could not read block 0 in file..."