Re: Proposal : For Auto-Prewarm. - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Proposal : For Auto-Prewarm.
Date
Msg-id CAA4eK1L9sjhmT6OxSh7kR7FajaF9o-hz3PFjVjVvppFC8C_-VQ@mail.gmail.com
Whole thread Raw
In response to Re: Proposal : For Auto-Prewarm.  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: Proposal : For Auto-Prewarm.  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Fri, Oct 28, 2016 at 1:45 AM, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
> On 10/27/16 6:39 AM, Mithun Cy wrote:
>>
>> # pg_autoprewarm.
>
>
> IMO it would be better to add this functionality to pg_prewarm instead of
> creating another contrib module.
>

There is not much common functionality between the two.  The main job
of this feature is to dump the contents of shared buffers and reload
them at startup and it takes care for not over ridding the existing
shared buffer contents while reloading the dump file.  This is
somewhat different to what prewarm provides which is to load the
relation blocks in memory or buffers, it has nothing to do with prior
shared buffer contents.  So, I am not sure if it is good idea to add
it as a functionality with prewarm module.  OTOH, if more people want
that way, then as such there is no harm in doing that way.

One point that seems to be worth discussing is when should the buffer
information be dumped to a file?  Shall we dump at each checkpoint or
at regular intervals via auto prewarm worker or at some other time?

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Partition-wise join for join between (declaratively) partitioned tables
Next
From: Andres Freund
Date:
Subject: Re: Proposal : For Auto-Prewarm.