Search Postgresql Archives

truncate table restart identity for non-owner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux