Re: Restore vacuum_delay_point() in GIN posting-tree leaf vacuum

From: solai v <solai(dot)cdac(at)gmail(dot)com>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Paul Kim <mok03127(at)gmail(dot)com>, pgsql-hackers mailing list <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Restore vacuum_delay_point() in GIN posting-tree leaf vacuum
Date: 2026-07-26 16:15:48
Message-ID: CAF0whudRg=1nV2zf4P-SASCRpwLPDOJSKUokXcGV4SjV-ot=+g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

On Sun, Jul 26, 2026 at 8:09 PM Alexander Korotkov <aekorotkov(at)gmail(dot)com> wrote:
>
> On Mon, Jul 20, 2026 at 10:10 PM Andrey Borodin <x4mmm(at)yandex-team(dot)ru> wrote:
> >
> > > On 20 Jul 2026, at 16:59, Alexander Korotkov <aekorotkov(at)gmail(dot)com> wrote:
> > >
> > > We're holding cleanup lock on posting tree root while
> > > ginScanPostingTreeToDelete(), not ginVacuumPostingTreeLeaves(). So, I
> > > think yes, vacuum_delay_point() was deleted unintentionally.
> >
> > Yup, my recollection was wrong. ginVacuumPostingTreeLeaves() seems fine for a
> > delay point.
>
> Please, check the patch attached.
>

Thank you for the updated patch. I reviewed and tested this patch by
creating a large GIN index on a table containing 10 million rows. Then
deleted 9 million rows, and ran VACUUM (VERBOSE). For validation, I
temporarily added instrumentation to ginVacuumPostingTreeLeaves()
function. On the unpatched build, I confirmed that the posting-tree
leaf traversal code was executed. Also after applying the patch, I
verified that the newly added vacuum_delay_point(false) is reached and
executed during the traversal of posting-tree leaf pages. I did not
observe any functional regressions or unexpected behavior during
testing. The patch restores the missing vacuum_delay_point() call
while preserving the existing vacuum behavior. The patch looks good to
me.

Regards,
Solai

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Miłosz Bieniek 2026-07-26 16:38:14 Re: Support UUIDv6 in uuid_extract_timestamp()
Previous Message Andrey Borodin 2026-07-26 16:09:53 Re: Compression of bigger WAL records