Re: [GENERAL] Table Updatable By Trigger Only - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] Table Updatable By Trigger Only
Date
Msg-id 4708.1497968482@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Table Updatable By Trigger Only  (Osahon Oduware <osahon.gis@gmail.com>)
Responses Re: [GENERAL] Table Updatable By Trigger Only
List pgsql-general
Osahon Oduware <osahon.gis@gmail.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


pgsql-general by date:

Previous
From: Steve Clark
Date:
Subject: Re: [GENERAL] Schedule
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Schedule