trigger for pg_authid

Started by Diego de Blasabout 19 years ago3 messagesgeneral
Jump to latest
#1Diego de Blas
diego.deblasm@gmail.com

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

#2Andreas Kretschmer
akretschmer@spamfence.net
In reply to: Diego de Blas (#1)
Re: trigger for pg_authid

Diego de Blas <diego.deblasm@gmail.com> schrieb:

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...

You can't create a TRIGGER on a system-table.

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082�, E 13.56889�

#3Kenneth Downs
ken@secdat.com
In reply to: Diego de Blas (#1)
Re: trigger for pg_authid

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.