pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix psql's non-autocommit mode for REPACK 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix psql's non-autocommit mode for REPACK @ 2026-11-25 09:34 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 2+ messages in thread From: Álvaro Herrera @ 2026-11-25 09:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix psql's non-autocommit mode for REPACK Prevent psql from starting a new transaction before a REPACK command, because that makes it fail to run if the options CONCURRENTLY or ANALYZE are given with a complaint that it cannot run in a transaction block. This is slighly excessive: it would be okay to send BEGIN before a REPACK without those options. That requires more command parsing than we're willing to do in psql, so punt. As a workaround for a user that wants to be able to abort a transaction that starts with a non-concurrent REPACK, they can send an explicit BEGIN instead. Reported-by: Philip Hofstetter <phofstetter@sensational.ch> Bug: #19932 Backpatch-through: 19 Discussion: https://postgr.es/m/19932-b395d1cee4127098@postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/14644e123839e5fe2d63797c9c0d16626ff9c420 Modified Files -------------- src/bin/psql/common.c | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix psql's non-autocommit mode for REPACK @ 2026-11-25 09:34 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 2+ messages in thread From: Álvaro Herrera @ 2026-11-25 09:34 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix psql's non-autocommit mode for REPACK Prevent psql from starting a new transaction before a REPACK command, because that makes it fail to run if the options CONCURRENTLY or ANALYZE are given with a complaint that it cannot run in a transaction block. This is slighly excessive: it would be okay to send BEGIN before a REPACK without those options. That requires more command parsing than we're willing to do in psql, so punt. As a workaround for a user that wants to be able to abort a transaction that starts with a non-concurrent REPACK, they can send an explicit BEGIN instead. Reported-by: Philip Hofstetter <phofstetter@sensational.ch> Bug: #19932 Backpatch-through: 19 Discussion: https://postgr.es/m/19932-b395d1cee4127098@postgresql.org Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4096427734b30cb98ce00a969f8050064dffcd60 Modified Files -------------- src/bin/psql/common.c | 2 ++ 1 file changed, 2 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-11-25 09:34 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-25 09:34 pgsql: Fix psql's non-autocommit mode for REPACK Álvaro Herrera <alvherre@kurilemu.de> 2026-11-25 09:34 pgsql: Fix psql's non-autocommit mode for REPACK Álvaro Herrera <alvherre@kurilemu.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox