| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
| Cc: | Philip Hofstetter <phofstetter(at)sensational(dot)ch>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off` |
| Date: | 2026-11-24 18:01:58 |
| Message-ID: | 1018317.1795543318@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
=?utf-8?Q?=C3=81lvaro?= Herrera <alvherre(at)kurilemu(dot)de> writes:
> On 2026-Nov-24, Philip Hofstetter wrote:
>> It’s a bit of a shame that psql needs to do a very minimal parsing job
>> here when the actual parsing (and the decision of whether something
>> can run in a transaction or not) happens on the server side again and
>> in a much more thorough way.
> Yeah, I completely agree. This whole thing is IMV a terrible hack and
> it would be better if we didn't have to do it at all. (We cannot avoid
> it, obviously.) Implementation-wise it's not very convenient to bring
> the server-side parser code to the frontend, though :-(
Could we get away with whitelisting all variants of REPACK,
rather than expecting psql to know which ones can't be executed
in a transaction? That seems like a recipe for future bugs of
omission, quite aside from parsing difficulties.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2026-11-24 18:41:49 | Re: repack with verbose output: not showing the number of removable row versions when using USING INDEX or CONCURRENTLY option |
| Previous Message | Tom Lane | 2026-11-24 17:52:22 | Re: BUG #19934: pg_upgrade can't handle "interesting" user-defined system relation |