pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igal @ Lucee.org <igal@lucee.org>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to tell which event was fired in Trigger function
Date: Wed, 11 Jul 2018 14:08:41 -0700
Message-ID: <8130b2ce-9390-303b-db71-0704d175a186@lucee.org> (raw)
In-Reply-To: <CAKFQuwZsOTRMD9pZYf-C9srikcB8M0GKQc46NcDGZcY7HzZbNw@mail.gmail.com>
References: <a389c8ed-ad53-8622-2b16-2f0c84141d25@lucee.org>
	<4fb09bff-b6db-e889-b4f0-9839bce44100@aklaver.com>
	<641dfb25-1103-1edf-b44e-cb8afc9f27cd@lucee.org>
	<CAKFQuwZsOTRMD9pZYf-C9srikcB8M0GKQc46NcDGZcY7HzZbNw@mail.gmail.com>

On 7/11/2018 11:02 AM, David G. Johnston wrote:
> On Wed, Jul 11, 2018 at 10:54 AM, Igal @ Lucee.org <igal@lucee.org 
> <mailto:igal@lucee.org>>wrote:
>
>     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
>         <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.
>
>
> ​For these situations I recommend bookmarking and navigating to the 
> Table of Contents [1] for the documentation and looking for relevant 
> chapter titles - in this case the "V. 38 - Triggers" one is right 
> there on the main page.
>
> https://www.postgresql.org/docs/10/static/index.html
>
> On a related note, maybe the pl/pgsql link from the Triggers chapter 
> should link directly to the Triggers section under pl/pgsql instead of 
> the top of the chapter...

+1

Should link to ¶42.9 - 
https://www.postgresql.org/docs/10/static/plpgsql-trigger.html

view thread (5+ messages)

Message-ID: <8130b2ce-9390-303b-db71-0704d175a186@lucee.org>
Permalink:  ../8130b2ce-9390-303b-db71-0704d175a186@lucee.org/
Also on:    postgresql.org/message-id/8130b2ce-9390-303b-db71-0704d175a186@lucee.org

 · 

reply

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, david.g.johnston@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: How to tell which event was fired in Trigger function
  In-Reply-To: <8130b2ce-9390-303b-db71-0704d175a186@lucee.org>
  References: <a389c8ed-ad53-8622-2b16-2f0c84141d25@lucee.org> <4fb09bff-b6db-e889-b4f0-9839bce44100@aklaver.com> <641dfb25-1103-1edf-b44e-cb8afc9f27cd@lucee.org> <CAKFQuwZsOTRMD9pZYf-C9srikcB8M0GKQc46NcDGZcY7HzZbNw@mail.gmail.com> <8130b2ce-9390-303b-db71-0704d175a186@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