Re: cache control? - Mailing list pgsql-hackers

From Neil Conway
Subject Re: cache control?
Date
Msg-id 8765fbx08b.fsf@mailbox.samurai.com
Whole thread Raw
In response to cache control?  (Michael Brusser <michael@synchronicity.com>)
List pgsql-hackers
Michael Brusser <michael@synchronicity.com> writes:
> Is there a way to force database to load a frequently-accessed table
> into cache and keep it there?

No.

BTW, this idea has been suggested in the past, so check the archives
for the prior discussions on this topic. The usual response is that
the PostgreSQL bufmgr should already placing hot pages into the cache,
so there isn't really a need for this mechanism. (And if the bufmgr
doesn't do this well enough, we should improve the bufmgr -- as Jan
has done for 7.5)

-Neil



pgsql-hackers by date:

Previous
From: "Thomas Hallgren"
Date:
Subject: Re: Question regarding pfree and thread safety.
Next
From: Neil Conway
Date:
Subject: Re: nomenclature