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.96) (envelope-from ) id 1vkwpK-004vKu-1o for pgsql-general@arkaria.postgresql.org; Wed, 28 Jan 2026 04:06:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkwpJ-00HEPG-2B for pgsql-general@arkaria.postgresql.org; Wed, 28 Jan 2026 04:06:46 +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.96) (envelope-from ) id 1vkwpJ-00HEP8-18 for pgsql-general@lists.postgresql.org; Wed, 28 Jan 2026 04:06:45 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vkwpH-002fti-0l for pgsql-general@lists.postgresql.org; Wed, 28 Jan 2026 04:06:44 +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 60S46f9S731540; Tue, 27 Jan 2026 23:06:41 -0500 From: Tom Lane To: Ron Johnson cc: "David G. Johnston" , Gus Spier , pgsql-general Subject: Re: Attempting to delete excess rows from table with BATCH DELETE In-reply-to: References: <729685.1769572320@sss.pgh.pa.us> Comments: In-reply-to Ron Johnson message dated "Tue, 27 Jan 2026 23:03:46 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <731538.1769573201.1@sss.pgh.pa.us> Date: Tue, 27 Jan 2026 23:06:41 -0500 Message-ID: <731539.1769573201@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > Hmm. Must have been START TRANSACTION which I remember causing issues in DO > blocks. Too lazy to test, but I think we might reject that. The normal rule in a procedure is that the next command after a COMMIT automatically starts a new transaction, so you don't need an explicit START. regards, tom lane