From: | Dinesh kumar <shenid(dot)08(at)gmail(dot)com> |
---|---|
To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: sync the data's from catalog table |
Date: | 2017-11-13 10:11:02 |
Message-ID: | CAM5WAJMb2PHy0y78y8uWs29LRL0v1GwtbveDtWyTrXO1GkFv5A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
Whenever the postgres user is trying to modify the user account's password
column in pg_authid table, we need to maintain a trigger in catalog table
(pg_authid) where it pop up the the "password column has been restricted
and it should not be modified". Is there any possible for the above
scenario in postgres? if it there please guide me how to proceed on this.
and one more question, Can we restrict the postgres user to not modify the
pg_authid table. Please share your thoughts on it.
Thanks
On Mon, Nov 13, 2017 at 2:12 PM, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:
> Dinesh kumar wrote:
> > How can I sync the data's from pg_authid to manually created table (user
> table) whenever the update or insert happens on pg_authid table.
>
> You cannot do this, because you cannot define triggers on catalog tables.
>
> The question is:
> Why do you want to do this? What are you trying to achieve?
>
> Yours,
> Laurenz Albe
>
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Morgan Lloyd | 2017-11-13 11:11:17 | Re: pg on Debian servers |
Previous Message | Bo Thorbjørn Jensen | 2017-11-13 09:45:56 | missing public on schema public |