pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Cascade Trigger Not Firing
Date: Sat, 14 Sep 2019 10:00:18 -0500
Message-ID: <5bbfe578-6f0a-0f33-b9ef-01ac4eb0c811@gmail.com> (raw)
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>

On 9/14/19 9:54 AM, Tom Lane wrote:
[snip
> 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.

Given that the UPDATE "*can* ... be set to fire only if certain columns are 
mentioned in the SET clause of the UPDATE statement", it logically follows 
that the default behavior is something else (for example, if the field value 
changes for whatever reason.

-- 
Angular momentum makes the world go 'round.

view thread (9+ messages)  latest in thread

Message-ID: <5bbfe578-6f0a-0f33-b9ef-01ac4eb0c811@gmail.com>
Permalink:  ../5bbfe578-6f0a-0f33-b9ef-01ac4eb0c811@gmail.com/
Also on:    postgresql.org/message-id/5bbfe578-6f0a-0f33-b9ef-01ac4eb0c811@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Cascade Trigger Not Firing
  In-Reply-To: <5bbfe578-6f0a-0f33-b9ef-01ac4eb0c811@gmail.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> <22653.1568472885@sss.pgh.pa.us> <5bbfe578-6f0a-0f33-b9ef-01ac4eb0c811@gmail.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