Re: Fix regression in vacuumdb --analyze-in-stages for partitioned tables

Fujii Masao <masao.fujii@gmail.com>

From: Fujii Masao <masao.fujii@gmail.com>
To: Chao Li <li.evan.chao@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>, Álvaro Herrera <alvherre@kurilemu.de>, Antonin Houska <ah@cybertec.at>, Laurenz Albe <laurenz.albe@cybertec.at>
Date: 2026-05-29T16:08:21Z
Lists: pgsql-hackers
On Fri, May 29, 2026 at 5:41 PM Chao Li <li.evan.chao@gmail.com> wrote:
> The fix is very straightforward, just add check for vacopts->mode == MODE_ANALYZE_IN_STAGES. I also added a test. If we had had this test earlier, the regression should have been caught.

Thanks for reporting the issue and providing the patch! The patch
looks good to me.

Regards,

-- 
Fujii Masao