| From: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix psql's non-autocommit mode for REPACK |
| Date: | 2026-11-25 09:34:34 |
| Message-ID: | E1xW9Oc-00000000FLg-17yj@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)sensational(dot)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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-11-25 14:44:19 | pgsql: Report the correct table in publication duplicate-table errors |
| Previous Message | Peter Eisentraut | 2026-11-25 08:07:09 | pgsql: Fix -Wcast-qual warnings in psql |