From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jitendra Loyal <jitendra.loyal@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: BEFORE ... Statement-level trigger
Date: Mon, 18 Feb 2019 08:12:19 -0800
Message-ID: <476285d1-d477-72b0-6da8-199bc03cc669@aklaver.com> (raw)
In-Reply-To: <CAGBkuseBKiU5Sj-7hboGzYtock80JnyQ0hNLQpBKMgsoFscLzw@mail.gmail.com>
References: <CAGBkuseBKiU5Sj-7hboGzYtock80JnyQ0hNLQpBKMgsoFscLzw@mail.gmail.com>
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.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, jitendra.loyal@gmail.com
Subject: Re: BEFORE ... Statement-level trigger
In-Reply-To: <476285d1-d477-72b0-6da8-199bc03cc669@aklaver.com>
References: <CAGBkuseBKiU5Sj-7hboGzYtock80JnyQ0hNLQpBKMgsoFscLzw@mail.gmail.com> <476285d1-d477-72b0-6da8-199bc03cc669@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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