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 1sHWkb-008dw5-Dq for pgsql-general@arkaria.postgresql.org; Wed, 12 Jun 2024 22:47:29 +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 1sHWkZ-0094QH-93 for pgsql-general@arkaria.postgresql.org; Wed, 12 Jun 2024 22:47:28 +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 1sHWkY-0094L1-Ty for pgsql-general@lists.postgresql.org; Wed, 12 Jun 2024 22:47:27 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHWkX-0011kl-Fv for pgsql-general@lists.postgresql.org; Wed, 12 Jun 2024 22:47:26 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id A9DE82A2B7C for ; Wed, 12 Jun 2024 15:47:24 -0700 (PDT) Date: Wed, 12 Jun 2024 15:47:24 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: UPDATE with multiple WHERE conditions In-Reply-To: <2587edf4-cd3e-46bd-8203-2881fc3902e9@gmail.com> Message-ID: References: <2587edf4-cd3e-46bd-8203-2881fc3902e9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 12 Jun 2024, Rob Sargent wrote: > Add "begin;" to that and try it.  If you don't get exactly UPDATE 295 > reported, then "rollback;"; Got it, thanks. Rich