Re: [GENERAL] Howto to clear PostgreSQL cache and how to preload all tuples of a table into the cache?

2011-12-12 Thread Cédric Villemain
Le 12 décembre 2011 01:42, Stefan Keller a écrit : > I'd like to clear the PostgreSQL cache (e.g. for benchmarking purposes). > And I'd like to preload all tuples of a table (say mytable_one) into the > cache. > > AFAIK there is no way to force all caches to be cleared in PostgreSQL > with an SQL

Re: [GENERAL] Howto to clear PostgreSQL cache and how to preload all tuples of a table into the cache?

2011-12-11 Thread Raghavendra
On Mon, Dec 12, 2011 at 8:33 AM, Craig Ringer wrote: > On 12/12/2011 08:42 AM, Stefan Keller wrote: > >> I'd like to clear the PostgreSQL cache (e.g. for benchmarking purposes). >> And I'd like to preload all tuples of a table (say mytable_one) into the >> cache. >> >> AFAIK there is no way to fo

Re: [GENERAL] Howto to clear PostgreSQL cache and how to preload all tuples of a table into the cache?

2011-12-11 Thread Craig Ringer
On 12/12/2011 08:42 AM, Stefan Keller wrote: I'd like to clear the PostgreSQL cache (e.g. for benchmarking purposes). And I'd like to preload all tuples of a table (say mytable_one) into the cache. AFAIK there is no way to force all caches to be cleared in PostgreSQL with an SQL command. The onl

[GENERAL] Howto to clear PostgreSQL cache and how to preload all tuples of a table into the cache?

2011-12-11 Thread Stefan Keller
I'd like to clear the PostgreSQL cache (e.g. for benchmarking purposes). And I'd like to preload all tuples of a table (say mytable_one) into the cache. AFAIK there is no way to force all caches to be cleared in PostgreSQL with an SQL command. The only way to achieve this, seems to restart PG (ser