Re: Table Updatable By Trigger Only

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Osahon Oduware <osahon(dot)gis(at)gmail(dot)com>
Cc: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Table Updatable By Trigger Only
Date: 2017-06-20 14:21:22
Message-ID: 4708.1497968482@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Osahon Oduware <osahon(dot)gis(at)gmail(dot)com> writes:
> The pg_trigger_depth() function solved the issue. Thanks a lot, you made my
> day.

If you start finding that that gets in your way for other purposes, you
might try making table A's trigger function be SECURITY DEFINER and
owned by a role that has permissions to change table B.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-06-20 14:38:46 Re: Schedule
Previous Message Steve Clark 2017-06-20 14:00:45 Re: Schedule