Re: grant not working on pg_class

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Gregory Stone <guomo(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: grant not working on pg_class
Date: 2003-12-01 20:27:35
Message-ID: Pine.LNX.4.44.0312012125580.23890-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gregory Stone writes:

> to execute a stored procedure that, with the command below, turns off the
> triggers temporarily I get ERROR: permission denied for relation
> pg_class.
>
> UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" =
> ''layer_template'';

There is a special restriction that prevents you from writing to system
catalogs. The user must have usecatupd set to true in pg_shadow. That is
generally only recommendable for superusers. (Else, anyone having write
access to pg_class could easily obtain write access to any other table.)

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2003-12-01 20:29:09 Re: Equivalent to DBMS_JOB
Previous Message Peter Eisentraut 2003-12-01 20:22:24 Re: [GENERAL] PostgreSQL certifications?