| From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Cc: | phofstetter(at)sensational(dot)ch |
| Subject: | BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off` |
| Date: | 2026-11-23 14:46:01 |
| Message-ID: | 19932-b395d1cee4127098@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 19932
Logged by: Philip Hofstetter
Email address: phofstetter(at)sensational(dot)ch
PostgreSQL version: 19.0
Operating system: macOS, Linux
Description:
Hello,
contrary to `vacuum` and `cluster`, `repack (concurrently)` is not
whitelisted in `psql` to allow to run it without starting a transaction when
autocommit is off.
This means that on a freshly started `psql` with `\set AUTOCOMMIT off`, it's
still possible to issue `vacuum <table>`, but not `repack (concurrently)
<table>` because `psql` will currently open a transaction before sending the
command.
sample:
pilif(at)[local]=> vacuum m;
VACUUM
Time: 5.870 ms
pilif(at)[local]=> repack (concurrently) m;
ERROR: REPACK (CONCURRENTLY) cannot run inside a transaction block
Time: 0.097 ms
*pilif(at)[local]=>
It looks like there's a white-list of commands in `bin/psql/common.c` in
`command_no_begin()` and it's missing the `repack (concurrently)` case.
Thanks
Philip
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan Nidzwetzki | 2026-11-23 15:31:39 | Re: pg_rewind and hint bits leads to visibility corruption |
| Previous Message | Tom Lane | 2026-11-23 14:19:33 | Re: BUG #19911: Window aggregate over ROWS n FOLLOWING: "unexpected end of tuplestore" after spill |