From: Igal @ Lucee.org <igal@lucee.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to tell which event was fired in Trigger function
Date: Wed, 11 Jul 2018 10:54:56 -0700
Message-ID: <641dfb25-1103-1edf-b44e-cb8afc9f27cd@lucee.org> (raw)
In-Reply-To: <4fb09bff-b6db-e889-b4f0-9839bce44100@aklaver.com>
References: <a389c8ed-ad53-8622-2b16-2f0c84141d25@lucee.org>
<4fb09bff-b6db-e889-b4f0-9839bce44100@aklaver.com>
On 7/11/2018 10:38 AM, Adrian Klaver wrote:
> On 07/11/2018 10:36 AM, Igal @ Lucee.org wrote:
>> How can I tell inside the trigger function if the event was DELETE or
>> INSERT/UPDATE?
>
> https://www.postgresql.org/docs/10/static/plpgsql-trigger.html
This looks like it have all of the information that I need. For some
reason search engines bring up many other pages but not that one.
Thanks Adrian!
Igal
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: igal@lucee.org, adrian.klaver@aklaver.com
Subject: Re: How to tell which event was fired in Trigger function
In-Reply-To: <641dfb25-1103-1edf-b44e-cb8afc9f27cd@lucee.org>
References: <a389c8ed-ad53-8622-2b16-2f0c84141d25@lucee.org> <4fb09bff-b6db-e889-b4f0-9839bce44100@aklaver.com> <641dfb25-1103-1edf-b44e-cb8afc9f27cd@lucee.org>
* 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