BUG #18229: Multiple vacuum queries fail after upgrading to 13.10

Started by PG Bug reporting formover 2 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 18229
Logged by: Ganeshpandi Eswaran
Email address: ganeshpandi.eswaran@chainsys.com
PostgreSQL version: 13.10
Operating system: linux
Description:

We are encountering query execution issues on Postgres versions 13.10 to 16.
When we execute numerous vacuum queries with in-application and auto-commit
set to false, we receive the following error.

Error: VACUUM cannot be performed within a pipeline.

The problem appears only after 13.10; previous to 13.09, the same set of
queries runs flawlessly. Could you kindly provide any information you have
regarding other people who are having similar issues, as well as any other
solutions?

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: BUG #18229: Multiple vacuum queries fail after upgrading to 13.10

PG Bug reporting form <noreply@postgresql.org> 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-commit
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:

/messages/by-id/17434-d9f7a064ce2a88a3@postgresql.org

regards, tom lane