pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Judy Loomis <hoodie.judy@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Cascade Trigger Not Firing
Date: Sat, 14 Sep 2019 10:54:45 -0400
Message-ID: <22653.1568472885@sss.pgh.pa.us> (raw)
In-Reply-To: <583b352c-f22a-e5b6-3ddc-40e298267b4d@aklaver.com>
References: <CADoG1K1zHEQJh8xgpy3kYMXLc8X8W6md2WafJkFPcp-CsWYsng@mail.gmail.com>
	<21219.1568401729@sss.pgh.pa.us>
	<CADoG1K1=ZsK-NoYxrWiHwhPv1uMiynLzN1x1Hb8CUb6CeZ_idw@mail.gmail.com>
	<20933.1568408581@sss.pgh.pa.us>
	<CADoG1K2hvHUQZzkfFSWnVzLOnnn0fcj9Woy7J=U0ZeJ9HuRjGg@mail.gmail.com>
	<583b352c-f22a-e5b6-3ddc-40e298267b4d@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 9/13/19 8:07 PM, Judy Loomis wrote:
>> At the very least that note about this behavior should be highlighted, 
>> probably on the Trigger Behavior page and not buried in a bunch of notes 
>> on the Create Trigger page.

> I know this after the fact. Still, as a general rule the best place to 
> start when learning about a command is on it's respective page under here:
> https://www.postgresql.org/docs/11/sql-commands.html
> Further I usually go to the Notes after reading the synopsis, as Notes 
> is where the exceptions to the rules and gotchas are called out.

The only mention of this feature in 38.1 "Overview of Trigger Behavior"
is 

    UPDATE triggers can moreover be set to fire only if certain columns
    are mentioned in the SET clause of the UPDATE statement.

which seems to me to be plenty specific enough --- it is carefully
*not* saying that the trigger will fire if the column changes value.
The CREATE TRIGGER man page never says that, either.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <22653.1568472885@sss.pgh.pa.us>
Permalink:  ../22653.1568472885@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22653.1568472885@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, hoodie.judy@gmail.com
  Subject: Re: Cascade Trigger Not Firing
  In-Reply-To: <22653.1568472885@sss.pgh.pa.us>
  References: <CADoG1K1zHEQJh8xgpy3kYMXLc8X8W6md2WafJkFPcp-CsWYsng@mail.gmail.com> <21219.1568401729@sss.pgh.pa.us> <CADoG1K1=ZsK-NoYxrWiHwhPv1uMiynLzN1x1Hb8CUb6CeZ_idw@mail.gmail.com> <20933.1568408581@sss.pgh.pa.us> <CADoG1K2hvHUQZzkfFSWnVzLOnnn0fcj9Woy7J=U0ZeJ9HuRjGg@mail.gmail.com> <583b352c-f22a-e5b6-3ddc-40e298267b4d@aklaver.com> <22653.1568472885@sss.pgh.pa.us>

* 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