truncate table restart identity for non-owner

Поиск
Список
Период
Сортировка
От Bastien Bodart
Тема truncate table restart identity for non-owner
Дата
Msg-id 50dd5534-05aa-20c5-06a8-188654132009@esnah.com
обсуждение исходный текст
Список pgsql-general
Hi,

It's currently impossible for a non-owner user to do 'TRUNCATE table
RESTART IDENTITY;' even with ALL privileges on both the table and the
sequences because of the implied ALTER SEQUENCE RESTART operation.

Why does it work that way instead of using 'SELECT setval('foo', 1,
false);' which is equivalent and allowed for users with UPDATE privilege?

Bastien


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Generic way to test input arguments
Следующее
От: Edilmar LISTAS
Дата:
Сообщение: Problem changing default data_directory in PG 9.6 + CentOS6