Re: BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off`

From: Philip Hofstetter <phofstetter(at)sensational(dot)ch>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: 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 07:39:03
Message-ID: CAGKNXQH65yFsHpZ+72TW+41WMZGCZhq9D5Y5Mn0A_57b-rPDEQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

+ if (pg_strncasecmp(option, "concurrently", 12))
+ /* XXX what if it's 'CONCURRENTLY OFF'? */
+ return true;

That’s a good question and the answer is kinda dissatisfying because
in that case, `psql` will not begin the transaction even though it
could (and would without any options) and would thus cause it to be
autocommited.

That would be slightly unexpected, though I agree it’s probably an edge case.

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.

Philip

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message ZizhuanLiu X-MAN 2026-11-24 08:05:41 Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs
Previous Message Michael Paquier 2026-11-24 03:32:10 Re: Segfaults in 18 and 19 when pgstats can't grow its DSA (back-patch of d9de60c5e4)