Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlCGI-0007CY-5n for pgsql-docs@arkaria.postgresql.org; Tue, 16 Jun 2020 14:08:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jlCGG-0001ps-Cg for pgsql-docs@arkaria.postgresql.org; Tue, 16 Jun 2020 14:08:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlCGF-0001pk-Iz for pgsql-docs@lists.postgresql.org; Tue, 16 Jun 2020 14:08:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jlCG8-000706-V3 for pgsql-docs@lists.postgresql.org; Tue, 16 Jun 2020 14:08:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 05GE8ELb1300921; Tue, 16 Jun 2020 10:08:14 -0400 From: Tom Lane To: Bruce Momjian cc: petermpallesen@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Not using suppress_redundant_updates_trigger in sql-createtrigger.html#examples In-reply-to: <20200616103644.GE31175@momjian.us> References: <159195294959.673.5752624528747900508@wrigleys.postgresql.org> <20200616103644.GE31175@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 16 Jun 2020 06:36:44 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1300919.1592316494.1@sss.pgh.pa.us> Date: Tue, 16 Jun 2020 10:08:14 -0400 Message-ID: <1300920.1592316494@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > I have created the attached patch to mention > suppress_redundant_updates_trigger() in this case. I don't think having > an actual example is warranted. I don't like this patch, because in fact suppress_redundant_updates_trigger is entirely unrelated to the stated purpose of that example (namely, to log something if the table was changed). The way you've written it makes it sound like suppress_redundant_updates_trigger could be used as an alternative implementation of that requirement. If you want to mention suppress_redundant_updates_trigger somewhere in this area, that's fine, but it should be treated as an independent topic rather than being wedged into the middle of an unrelated example. Maybe a distinct para saying something like "To suppress no-op updates of a table, see suppress_redundant_updates_trigger." (and making that an actual link would be a good idea). regards, tom lane