Re: our buffer replacement strategy is kind of lame - Mailing list pgsql-hackers

From daveg
Subject Re: our buffer replacement strategy is kind of lame
Date
Msg-id 20110812224246.GN14353@sonic.net
Whole thread Raw
In response to Re: our buffer replacement strategy is kind of lame  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Fri, Aug 12, 2011 at 01:28:49PM +0100, Simon Riggs wrote:
> I think there are reasonable arguments to make
> 
> * prefer_cache = off (default) | on a table level storage parameter,
> =on will disable the use of BufferAccessStrategy
> 
> * make cache_spoil_threshold a parameter, with default 0.25
> 
> Considering the world of very large RAMs in which we now live, some
> control of the above makes sense.

As long as we are discussion cache settings for tables, I have a client
who would like to be able to lock specific tables and indexes into cache
as they have strict response time requirements for particular queries.
At the moment they are running postgres with a tablespace on ramfs and
taking frequent backups, but this is not optimal.

-dg

-- 
David Gould       daveg@sonic.net      510 536 1443    510 282 0869
If simplicity worked, the world would be overrun with insects.


pgsql-hackers by date:

Previous
From: daveg
Date:
Subject: Re: VACUUM FULL versus system catalog cache invalidation
Next
From: daveg
Date:
Subject: OperationalError: FATAL: lock AccessShareLock on object 0/1260/0 is already