From: Andy Colson <andy@squeakycode.net>
To: Stefan Keller <sfkeller@gmail.com>
Cc: pgsql-performance@postgresql.org, Stephen Frost <sfrost@snowman.net>
Subject: Re: PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?
Date: Sun, 26 Feb 2012 09:20:54 -0600
Message-ID: <4F4A4DD6.6090904@squeakycode.net> (raw)
In-Reply-To: <CAFcOn28A3dkmCEGsu-7Chi0gH1qAPYcfbSp8op9gswFawS6ECA@mail.gmail.com>
References: <CAFcOn28A3dkmCEGsu-7Chi0gH1qAPYcfbSp8op9gswFawS6ECA@mail.gmail.com>
On 02/25/2012 06:16 PM, Stefan Keller wrote:
>
> 1. How can I warm up or re-populate shared buffers of Postgres?
> 2. Are there any hints on how to tell Postgres to read in all table
> contents into memory?
>
> Yours, Stefan
>
How about after you load the data, vacuum freeze it, then do something like:
SELECT count(*) FROM osm_point WHERE tags @> 'tourism=>junk'
-Andy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: andy@squeakycode.net, sfkeller@gmail.com, sfrost@snowman.net
Subject: Re: PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?
In-Reply-To: <4F4A4DD6.6090904@squeakycode.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox