Re: Query regarding pg_prewarm extension

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Query regarding pg_prewarm extension
Дата
Msg-id CAApHDvrWV2iekO7agpN2dEDi_F_QKwqQLwzqD8RR2jRC5DCgiQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query regarding pg_prewarm extension  (Ayush Vatsa <ayushvatsa1810@gmail.com>)
Список pgsql-hackers
On Tue, 31 Dec 2024 at 06:24, Ayush Vatsa <ayushvatsa1810@gmail.com> wrote:
> To me, using a range of pages to prewarm a relation doesn’t seem like a
> common use case. For example, if a user calls prewarm(100, 200),
> how would they decide those specific numbers? While it’s possible to
> inspect the contents of those pages, as Jeremy noted, users typically
> don’t track the location of specific rows for prewarming purposes.

It's probably rarely useful for that exact reason, however, for
insert-only tables (where only recently inserted data is queried),
which pages recently inserted rows are in is more predictable. I can
imagine that someone might want to load some recent percentage of the
table using these parameters.

David



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