Re: Using read_stream in index vacuum - Mailing list pgsql-hackers

From Melanie Plageman
Subject Re: Using read_stream in index vacuum
Date
Msg-id CAAKRu_aXp6fX1xT6gKA=-j=XT=NU=oUpGF+1gDn2DgtoyjsSdg@mail.gmail.com
Whole thread Raw
In response to Re: Using read_stream in index vacuum  (Melanie Plageman <melanieplageman@gmail.com>)
List pgsql-hackers
On Mon, Oct 21, 2024 at 3:34 PM Melanie Plageman
<melanieplageman@gmail.com> wrote:
>
> For the outer loop,  I feel like we have options. For example, maybe
> the read stream callback can call RelationGetNumberOfBlocks(). I mean
> maybe we don't want to have to take a relation extension lock in a
> callback.

Also, given this note in btvacuumscan:

     * XXX: Now that new pages are locked with RBM_ZERO_AND_LOCK, I don't
     * think the use of the extension lock is still required.

Maybe we can stop requiring the extension lock and then I think it
might be okay to call RelationGetNumberOfBlocks() in the callback.
Probably needs more thought though.

- Melanie



pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: Using read_stream in index vacuum
Next
From: Melanie Plageman
Date:
Subject: Re: Using read_stream in index vacuum