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 1vkwOa-004oEV-1N for pgsql-general@arkaria.postgresql.org; Wed, 28 Jan 2026 03:39:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vkwOZ-00H2w8-1L for pgsql-general@arkaria.postgresql.org; Wed, 28 Jan 2026 03:39:07 +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 1vkwOZ-00H2w0-0G for pgsql-general@lists.postgresql.org; Wed, 28 Jan 2026 03:39:07 +0000 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vkwOW-002fiy-24 for pgsql-general@lists.postgresql.org; Wed, 28 Jan 2026 03:39:06 +0000 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-662f74f653bso468425eaf.3 for ; Tue, 27 Jan 2026 19:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769571544; cv=none; d=google.com; s=arc-20240605; b=dENEuA+6vlZZIgSOkoGDSBm7YSNJ1Vg8EYKLLFZelXXsr4s/T0nYEZZxqN7afrF7CZ f93mLPCrGgveQF/YVBgyKZSvJdi9N1s2LiU0/yjX6fAKGLkHRLCkHJefu/Q8xXlbb0EE R7HqigWN5OqLhrNo0UmRCqYdYYdTVy+Bu8QLF4Z34bKQU877wJDYoKmsj2Qmu2LuAj1d N43pkh4Rhqa/1XWlaxDLlNqAmHRE5PTdnxx4D8fcyWSISJ+2OAMe5F5+IcmP39JmR0wt pOMSoXmGdUjPRA9wvf4DQgkL0KR5In47ZUfbpsJgPd5KclPkLHPYH9e12mi4ptJP4vnM rcRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature; bh=+vnTgxauXTYn6ed1oIvWHPshbxDl9GZxteRPoIuu4kI=; fh=iustGK7nnrMY6L5im5X4eDfBy4adRuOIV7yrP7msASY=; b=I0oCDIlrEawPclmodV6a6jldQ0sTNnN3pf+kqlSGo+FjrfuOGy12/5rbF2WqoR8LD8 xZgSg+z64OejlVPHmAd3JTUtNNTXdyItO6Up1EF5D5tjKcQp2s6NM4MpkRbl50N4m31f UjEgKdA50yUfe/j88iiJxidiYbNfVDn815Mq2n3RxP+lsBY55hMMz1a/jv8Nr4Ib5BX/ z3dtjS06Av4kSZ9dHBbBfAxd706TPwazshikcQ0kfAfJjI3kIrTDP5YdUta+3mYorGNy 2N0G4wY1+LBOrZtsgj7ZEcIVEGnj6rR61TW7NbH0XRFPRMtPzbGqZ7ug4wySlnBsvM7v xkLg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769571544; x=1770176344; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+vnTgxauXTYn6ed1oIvWHPshbxDl9GZxteRPoIuu4kI=; b=Ih2Bvje39GbirYxOUNYBghJ6JIjW+FzDjQ25VhkKeNoApMgwbLp3jE/8s7w/NgDJpa ODttqV02Xs2vKi1gUJQJcKbMgwsHUWQSm2gsKQZrSVD4PDg7nVmPgbYwzIPe+Y2Ontao 107Ljx6TMMH1GZcgsTpeYkkcrvxiHmI3Es0+SzzOT/q6npGJxBH6BHcy3JyX9B91wR6R JZFORF74JmM2MajClbPAPdWDbqNH0Snv70oYnUF/pN6YuL1r7w0iajsZqkjqDw+RnhvR 1uXGaov6tdClB2e6FKZZ0SODdYeeezD+Dxc2jsmS232Pxo3RTJ7Ap+geNK3mZ++2fUGr I0fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769571544; x=1770176344; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+vnTgxauXTYn6ed1oIvWHPshbxDl9GZxteRPoIuu4kI=; b=XsOK2rMWt0KEPIpVl6A+YMLWjw0jjsRvLijosjtMypBIAuJB1vWRLY/hRDcFZfGlMh KZJVhtHpW75VvRCQaPBseGFZGdGBcLiJNjzh9ZCYwqROgX8JvUsam9W2XVzFKaTOdDJU pbfayvu2Gg5l72PQglY0hcBtLhBBTh2T2B6lIr76tKyDByQvaPo8GbStOs9K3Uj62928 QmgCTFQ8+bc7ysD1byeIzO7Gim77b2sV4p0MXVYw37dcGl+kOpsfc2LtB7IAlDeAWgc0 AgCCSuFqHCuwILeX+sAbPk2xAwS7CfyqZIN1K4XPCP6/W44jJngp3eJTHeCARdz1Ggxu t3tg== X-Gm-Message-State: AOJu0Yx6uHOvqJ/2kzMK3aKYEOwFuwbpEnamVJ7z6WpirAQYbXA8h4G4 7qhYSR4Tz86Lj/wvx6C1OuJNJVeRdFdntXg7g+B6C0qy9Ra8JEehX1EbkkqAUIah8oyCKMprnxb qE1iYYUdujb/MzOBZr5WMBstlf92Tw8SLytN6 X-Gm-Gg: AZuq6aJ12YywDkS/D4r2+U6S4YBUyKERlE+qFJ9ucqsVK+/Jouzvyi2bcNJQPXROt5j HBaD4PWGPEmcMCqhcz1uwx5niLdshR8gUOBBxICAbGZVK9IFEJJkTUTnCG0xfxuHLJWloTFCqR/ 87mfEaS2soZ2bHalgWdezhOuScLlwNMKbz7zXCo0hkAZZRpGUqQCjj4ue6abg9yaMD0A0phqEKN zGeF+ySJs7357nMoZDQslkxEHFiswpA+7MkoaUlyApE6XHd8hcXfm6G7nrm821PmcaNQBOQ X-Received: by 2002:a05:6820:1797:b0:65d:5e1:ed1f with SMTP id 006d021491bc7-662f2037e48mr2349441eaf.29.1769571544403; Tue, 27 Jan 2026 19:39:04 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6802:604d:20b0:619:b970:e659 with HTTP; Tue, 27 Jan 2026 19:39:03 -0800 (PST) In-Reply-To: References: From: "David G. Johnston" Date: Tue, 27 Jan 2026 20:39:03 -0700 X-Gm-Features: AZwV_Qjify-FUTMyFU3A9GmsZiSLdpZiX3BeQXWWEHPlx48Xa7kIqKrkPo3v_Tc Message-ID: Subject: Re: Attempting to delete excess rows from table with BATCH DELETE To: Gus Spier Cc: pgsql-general Content-Type: multipart/alternative; boundary="0000000000004f148d06496a7b5c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000004f148d06496a7b5c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, January 27, 2026, Gus Spier wrote: > > I write a procedure to accomplish all this work but it persists in > returning a error to the effect that a COMMIT is not valid in a block > tht tries to DELETE data. > Haven=E2=80=99t tested to be sure but this doesn=E2=80=99t seem like a comm= unity edition limitation. I don=E2=80=99t see any mention of this here at least: https://www.postgresql.org/docs/current/xproc.html You=E2=80=99d have to move the logic to a proper client application that ex= ecutes top-level commands. David J. --0000000000004f148d06496a7b5c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tuesday, January 27, 2026, Gus Spier <gus.spier@gmail.com> wrote:
https://www.postgresql.= org/docs/current/xproc.html

You=E2=80=99d = have to move the logic to a proper client application that executes top-lev= el commands.

David J.

--0000000000004f148d06496a7b5c--