Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uSJ9o-0060OJ-8i for pgsql-admin@arkaria.postgresql.org; Thu, 19 Jun 2025 17:34:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uSJ9m-00DEZW-8L for pgsql-admin@arkaria.postgresql.org; Thu, 19 Jun 2025 17:34:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uSJ9l-00DEZO-Sk for pgsql-admin@lists.postgresql.org; Thu, 19 Jun 2025 17:34:34 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uSJ9k-002vWN-25 for pgsql-admin@lists.postgresql.org; Thu, 19 Jun 2025 17:34:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5FAF264778; Thu, 19 Jun 2025 17:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1750354471; bh=k7cIZm/l3PnXAy+3mTzflw/AE5QQ0rrlJIZBpyX3Byg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=4zMR9+YlwUd2TP/8Y1F3je+0b1VLE8+BS61LRh84oMBYFoomLuQ6eQP9sxto4JfUu 9c+/+zQ6TGR3SyDH/eVydeNGB9/XTKi1QsgFqTkNjNR0xCo6eEb06+v6Gf8cbz+07N 0u9/J1lnAON7t1z9CKZ8dhHWp+88J9G/DpZ7dD9eYrYoPWxQeCssPvj7Y+aU+Jyv69 53nikr0B1zjgamkWi5CAYEKEM/q45D3PJSXj7Dl+BO57BznjV/Ui68iwnU/p4Mmw+x Li7H5WhCH2U0bpxWlhYxc/vWLBFIjc57fJeZjou/aSD6gbpTLSxIpveWjBloUvfEeN f1hzZjM25DCvg== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xnoDW9Aeiw64; Thu, 19 Jun 2025 17:34:31 +0000 (UTC) Received: from smtpclient.apple (165.140.184.195.ip.vcn.com [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id E0D9C643D0; Thu, 19 Jun 2025 17:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1750354471; bh=k7cIZm/l3PnXAy+3mTzflw/AE5QQ0rrlJIZBpyX3Byg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=4zMR9+YlwUd2TP/8Y1F3je+0b1VLE8+BS61LRh84oMBYFoomLuQ6eQP9sxto4JfUu 9c+/+zQ6TGR3SyDH/eVydeNGB9/XTKi1QsgFqTkNjNR0xCo6eEb06+v6Gf8cbz+07N 0u9/J1lnAON7t1z9CKZ8dhHWp+88J9G/DpZ7dD9eYrYoPWxQeCssPvj7Y+aU+Jyv69 53nikr0B1zjgamkWi5CAYEKEM/q45D3PJSXj7Dl+BO57BznjV/Ui68iwnU/p4Mmw+x Li7H5WhCH2U0bpxWlhYxc/vWLBFIjc57fJeZjou/aSD6gbpTLSxIpveWjBloUvfEeN f1hzZjM25DCvg== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: update behavior From: Scott Ribe In-Reply-To: Date: Thu, 19 Jun 2025 11:34:19 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: <75F792AF-58DF-4559-A2E8-C89060D1E94E@elevated-dev.com> To: "David G. Johnston" X-Mailer: Apple Mail (2.3826.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jun 19, 2025, at 11:31=E2=80=AFAM, David G. Johnston = wrote: >=20 > Correct. You need a trigger to prevent the update. There is one = provided: suppress_redundant_updates_trigger() Or, in my case that prompted this question, I need a WHERE clause for = the ON CONFLICT UPDATE...