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 1rAXJW-0074xz-QF for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Dec 2023 15:26:22 +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 1rAXJU-004Zp5-4F for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Dec 2023 15:26:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAXJT-004Zox-SJ for pgsql-bugs@lists.postgresql.org; Tue, 05 Dec 2023 15:26:19 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAXJQ-00AEsS-D5 for pgsql-bugs@lists.postgresql.org; Tue, 05 Dec 2023 15:26:19 +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 3B5FQDLO924357; Tue, 5 Dec 2023 10:26:13 -0500 From: Tom Lane To: ganeshpandi.eswaran@chainsys.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18229: Multiple vacuum queries fail after upgrading to 13.10 In-reply-to: <18229-fc177bc9708a2787@postgresql.org> References: <18229-fc177bc9708a2787@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 05 Dec 2023 14:22:29 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <924355.1701789973.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 05 Dec 2023 10:26:13 -0500 Message-ID: <924356.1701789973@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > We are encountering query execution issues on Postgres versions 13.10 to= 16. > When we execute numerous vacuum queries with in-application and auto-com= mit > set to false, we receive the following error. > Error: VACUUM cannot be performed within a pipeline. You've provided no context about how you're invoking VACUUM, but this error message suggests that you're doing so in a way that causes it to be run as part of a multi-command transaction. That's always been disallowed in theory, but the enforcement was incomplete up until our Feb 2023 releases. You need to adjust your application, or else convince us that whatever you're doing should be allowed. There's more context in this long thread: https://www.postgresql.org/message-id/flat/17434-d9f7a064ce2a88a3%40postgr= esql.org regards, tom lane