Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i99Rw-0002I4-1x for pgsql-general@arkaria.postgresql.org; Sat, 14 Sep 2019 14:54:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i99Rt-0004pZ-Rf for pgsql-general@arkaria.postgresql.org; Sat, 14 Sep 2019 14:54:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i99Rt-0004pS-Hh for pgsql-general@lists.postgresql.org; Sat, 14 Sep 2019 14:54:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i99Rq-0000cz-Ru for pgsql-general@lists.postgresql.org; Sat, 14 Sep 2019 14:54:53 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x8EEsjFj022654; Sat, 14 Sep 2019 10:54:45 -0400 From: Tom Lane To: Adrian Klaver cc: Judy Loomis , pgsql-general@lists.postgresql.org Subject: Re: Cascade Trigger Not Firing In-reply-to: <583b352c-f22a-e5b6-3ddc-40e298267b4d@aklaver.com> References: <21219.1568401729@sss.pgh.pa.us> <20933.1568408581@sss.pgh.pa.us> <583b352c-f22a-e5b6-3ddc-40e298267b4d@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Sat, 14 Sep 2019 07:27:12 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <22652.1568472885.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sat, 14 Sep 2019 10:54:45 -0400 Message-ID: <22653.1568472885@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver 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