Re: BEFORE ... Statement-level trigger

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Jitendra Loyal <jitendra(dot)loyal(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: BEFORE ... Statement-level trigger
Date: 2019-02-18 16:12:19
Message-ID: 476285d1-d477-72b0-6da8-199bc03cc669@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/18/19 4:06 AM, Jitendra Loyal wrote:
> The behaviour is not clear for BEFORE Statement-level Trigger. This is
> because transition tables cannot be used. So how does one get access to
> the rows being affected? It is not documented either.

If you need the row values then use a FOR ROW trigger.

>
> Thanks
> Jiten

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jitendra Loyal 2019-02-18 16:20:43 Re: BEFORE ... Statement-level trigger
Previous Message Adrian Klaver 2019-02-18 16:01:55 Re: Statement-level trigger results in recursion