| From: | Álvaro Herrera <alvherre(at)kurilemu(dot)de> |
|---|---|
| To: | Philip Hofstetter <phofstetter(at)sensational(dot)ch> |
| 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 08:10:37 |
| Message-ID: | awVFP-EHuqyMYv51@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
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 :-(
On the other hand, psql has to do other parsing tasks, such as looking
for command-separating semicolons, quotes and things like that. Those
would perhaps also be better handled with the actual parser code. I'm
not volunteering though.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Oh, great altar of passive entertainment, bestow upon me thy discordant images
at such speed as to render linear thought impossible" (Calvin a la TV)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan Nidzwetzki | 2026-11-24 09:47:08 | Re: pg_rewind and hint bits leads to visibility corruption |
| Previous Message | ZizhuanLiu X-MAN | 2026-11-24 08:05:41 | Re: BUG #17545: Incorrect selectivity for IS NOT DISTINCT FROM and NULLs |