Re: Using read_stream in index vacuum

Поиск
Список
Период
Сортировка
От Melanie Plageman
Тема Re: Using read_stream in index vacuum
Дата
Msg-id CAAKRu_aROAeTx1Z-99UY1wE09NF_BYKG9BzK0ZoGCW+C1rU1tg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using read_stream in index vacuum  (Junwang Zhao <zhjwpku@gmail.com>)
Ответы Re: Using read_stream in index vacuum
Список pgsql-hackers
On Mon, Oct 21, 2024 at 4:49 PM Andrei Borodin <x4mmm@yandex-team.ru> wrote:
>
> 21.10.2024, 22:34, "Melanie Plageman" <melanieplageman@gmail.com>:
>
> The whole point of the read stream callback provided by the caller is
> that the logic to get the next block should be there
>
> We must get number of blocks after examining last block. But callback returning EOF might be called before. With
currentAPI we have to restart. 
>
> Removing extension lock will not change this.

I was suggesting you call RelationGetNumberOfBlocks() once
current_block == last_exclusive in the callback itself.

- Melanie



В списке pgsql-hackers по дате отправления: