On Fri, Aug 28, 2026 at 01:09:59AM +0900, Fujii Masao wrote:
> On Thu, Aug 27, 2026 at 10:56 PM Nathan Bossart
> <[email protected]> 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.

Hm.  Couldn't we do something like the in_outer_xact/use_own_xacts stuff in
vacuum() to get it working instead?

-- 
nathan


Reply via email to