Re: How to tell which event was fired in Trigger function

From: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to tell which event was fired in Trigger function
Date: 2018-07-11 17:54:56
Message-ID: 641dfb25-1103-1edf-b44e-cb8afc9f27cd@lucee.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2018-07-11 18:02:40 Re: How to tell which event was fired in Trigger function
Previous Message Adrian Klaver 2018-07-11 17:38:14 Re: How to tell which event was fired in Trigger function