Re: REPACK (ANALYZE) within transaction block segfaults - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: REPACK (ANALYZE) within transaction block segfaults
Date
Msg-id CAHGQGwEqN80ka_PY__DiPCu+S=h_7KgujnMEU38OU9C1zsGQpA@mail.gmail.com
Whole thread
List pgsql-hackers
On Thu, Aug 27, 2026 at 10:56 PM Nathan Bossart
<nathandbossart@gmail.com> wrote:
> Presumably we need to handle transaction blocks a bit like how vacuum()
> does.  Or maybe even prevent REPACK (ANALYZE) within a transaction block.

I looked into this a bit. I think the problem is not ordinary
transaction blocks themselves, but non-top-level execution, such as the
DO block in the reproducer.

So the attached patch rejects only non-top-level REPACK (ANALYZE)
commands.

Regards,

--
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: Proposal: Supporting URI SAN in Certificate Authentication
Next
From: Noah Misch
Date:
Subject: pg_*_advice: tsv load failure, etc.