pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
sync the data's from catalog table
3+ messages / 2 participants
[nested] [flat]

* sync the data's from catalog table
@ 2017-11-10 14:28 Dinesh kumar <shenid.08@gmail.com>
  2017-11-13 08:42 ` Re: sync the data's from catalog table Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Dinesh kumar @ 2017-11-10 14:28 UTC (permalink / raw)
  To: pgsql-general

Hi Team,

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.

Thanks

Dinesh Kumar

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: sync the data's from catalog table
  2017-11-10 14:28 sync the data's from catalog table Dinesh kumar <shenid.08@gmail.com>
@ 2017-11-13 08:42 ` Laurenz Albe <laurenz.albe@cybertec.at>
  2017-11-13 10:11   ` Re: sync the data's from catalog table Dinesh kumar <shenid.08@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Laurenz Albe @ 2017-11-13 08:42 UTC (permalink / raw)
  To: Dinesh kumar <shenid.08@gmail.com>; pgsql-general

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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: sync the data's from catalog table
  2017-11-10 14:28 sync the data's from catalog table Dinesh kumar <shenid.08@gmail.com>
  2017-11-13 08:42 ` Re: sync the data's from catalog table Laurenz Albe <laurenz.albe@cybertec.at>
@ 2017-11-13 10:11   ` Dinesh kumar <shenid.08@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Dinesh kumar @ 2017-11-13 10:11 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: 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.albe@cybertec.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
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-11-13 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 14:28 sync the data's from catalog table Dinesh kumar <shenid.08@gmail.com>
2017-11-13 08:42 ` Laurenz Albe <laurenz.albe@cybertec.at>
2017-11-13 10:11   ` Dinesh kumar <shenid.08@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox