Re: [PERFORM] Postgresql cache (memory) performance + how to warm up the cache

2009-06-01 Thread Greg Smith
On Mon, 1 Jun 2009, Shaul Dar wrote: 1. At any given time how can I check what portion (%) of specific tables and indexes is cached in memory? This is a bit tricky. PostgreSQL caches information in its shared_buffers cache, and you can get visibility into that if you install the contrib/pg

[PERFORM] Postgresql cache (memory) performance + how to warm up the cache

2009-06-01 Thread Shaul Dar
I have a DB table with 25M rows, ~3K each (i.e. ~75GB), that together with multiple indexes I use (an additional 15-20GB) will not fit entirely in memory (64GB on machine). A typical query locates 300 rows thru an index, optionally filters them down to ~50-300 rows using other indexes, finally fetc