Re: Parallel heap vacuum

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: Vadim Ponomarev <vbponomarev(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Subject: Re: Parallel heap vacuum
Date: 2026-11-24 01:58:36
Message-ID: CALj2ACX9BCAsCYcdCozfG=FxW3-xWw5p6y000m1LxLMrbdbNAQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Mon, Nov 16, 2026 at 2:02 PM Bharath Rupireddy
<bharath(dot)rupireddyforpostgres(at)gmail(dot)com> wrote:
>
> On Thu, Nov 12, 2026 at 1:13 PM Vadim Ponomarev <vbponomarev(at)gmail(dot)com> wrote:
> >
> > I have a question about the interaction between parallel heap scanning and the wraparound failsafe in v21.
> >
> > Is there a reason to avoid starting parallel heap workers when the failsafe is already active?
> > For large tables parallel freezing could be particularly useful.
>
> Thanks. I will address this in the next revision, but that's going to
> be temporary. The final code depends on how the cutoffs are shared and
> how it is detected by the leader and workers:
> https://commitfest.postgresql.org/patch/7490/

Please find the attached v22 patches. I fixed the failsafe issue and a
couple of other things identified in self-review: removed some unused
variables, moved the truncate-related param back to LVRelState, fixed
the worker calculations depending on the size of the table, improved
some doc wordings, fixed the progress reporting of dead_tuple_bytes,
etc.

Thoughts?

--
Bharath Rupireddy
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
v22-0003-Allow-vacuum-to-scan-the-heap-with-parallel-work.patch application/x-patch 76.9 KB
v22-0002-Move-heap-scan-state-out-of-LVRelState-into-LVSc.patch application/x-patch 27.9 KB
v22-0001-Move-parallel-vacuum-code-to-separate-functions-.patch application/x-patch 32.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message David Rowley 2026-11-24 01:43:45 Re: Hash aggregation shows only the last execution's stats for parallel workers