Re: Query regarding pg_prewarm extension - Mailing list pgsql-hackers

From David Rowley
Subject Re: Query regarding pg_prewarm extension
Date
Msg-id CAApHDvrWV2iekO7agpN2dEDi_F_QKwqQLwzqD8RR2jRC5DCgiQ@mail.gmail.com
Whole thread Raw
In response to Re: Query regarding pg_prewarm extension  (Ayush Vatsa <ayushvatsa1810@gmail.com>)
List 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 by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Statistics Import and Export
Next
From: Bruce Momjian
Date:
Subject: Re: Statistics Import and Export