Re: How to speed up the first-time-searching in pgsql? - Mailing list pgsql-general

From Greg Smith
Subject Re: How to speed up the first-time-searching in pgsql?
Date
Msg-id alpine.GSO.2.01.0905262118290.7909@westnet.com
Whole thread Raw
In response to Re: How to speed up the first-time-searching in pgsql?  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: How to speed up the first-time-searching in pgsql?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, 26 May 2009, Scott Marlowe wrote:

> Also, in the morning, have a cron job crank up that does "select * from
> mybigtable" for each big table to load it into cache.

Just to clarify:  on 8.3 and later versions, doing this doesn't do what
some people expect.  Sequential scans like that will continuously re-use a
256KB section of the PostgreSQL shared_buffers space, so this won't cause
all of that to get paged back in if the problem is related to it being
swapped out.  It will pass everything through the OS buffer cache though
and prime it usefully, which might be all that's actually needed.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: How to speed up the first-time-searching in pgsql?
Next
From: Tom Lane
Date:
Subject: Re: How to speed up the first-time-searching in pgsql?