Re: Using read_stream in index vacuum

Поиск
Список
Период
Сортировка
От Melanie Plageman
Тема Re: Using read_stream in index vacuum
Дата
Msg-id CAAKRu_aXp6fX1xT6gKA=-j=XT=NU=oUpGF+1gDn2DgtoyjsSdg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using read_stream in index vacuum  (Melanie Plageman <melanieplageman@gmail.com>)
Список 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 по дате отправления: