Search Postgresql Archives

privillages for pg_class

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

 



Hello.
I use following statements for temporarily disable triggers and enable them again:
--Disable triggers. 
UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" = 'orders';
 
--Enable triggers.
UPDATE pg_class SET reltriggers = (
    SELECT count(*) FROM pg_trigger where pg_class.oid = tgrelid)
    WHERE relname = 'orders';
 
It works when connected as a superuser.
 
But, when I try to execute it as a normal user, not enough privillages, although I granted all privillages to pg_class and pg_trigger.
 
Do I miss something?
 
Thanks.
 

[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