Re: trigger for pg_authid - Mailing list pgsql-general

From Kenneth Downs
Subject Re: trigger for pg_authid
Date
Msg-id 45CC8C15.6050406@secdat.com
Whole thread Raw
In response to trigger for pg_authid  ("Diego de Blas" <diego.deblasm@gmail.com>)
List pgsql-general
Diego de Blas wrote:
> Hello,
>
> I'm trying to set a new trigger for "pg_authid" connected as
> "postgres" but system returns always the same error "Permission
> denied: "pg_authid" is a system catalog"... I have checked privileges
> and I can teorically add new triggers. I don't know whta's wrong...
>
> Thanks

We went the other way with this.  We created our own table of users, and
put a trigger on that so that INSERTS to that table created new users in
postgres, plus anything else we needed to happen.  We did the same with
a table of user-group membership.

Attachment

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: intarray index vs gin index
Next
From: johnf
Date:
Subject: Re: does anyone have a tool to convert SP'sT-SQL to Postgres