Re: cache - timing - Mailing list pgsql-general

From Vivek Khera
Subject Re: cache - timing
Date
Msg-id BA65C15F-6C60-4607-A3D2-D2C0B14F9B24@khera.org
Whole thread Raw
In response to cache - timing  ("ab" <akanksha.baid@gmail.com>)
List pgsql-general
On Mar 19, 2007, at 1:58 AM, ab wrote:

> I am trying to measure the time taken for a number of queries using
> \timing .
> All queries on my table other than the first one are pretty fast. This
> is likely due to caching. Is there any way to clear the internal cache
> of Postgres. Should I be worried about the entire OS cache also?

restarting postgres ought to do it.

however, also note that your OS's disk cache plays a big role, and
generally the only way to flush that is to reboot and/or do a lot of
other random IO.


Attachment

pgsql-general by date:

Previous
From: "Dmitry Koterov"
Date:
Subject: Re: Planner tuning
Next
From: "John D. Burger"
Date:
Subject: LISTEN/NOTIFY and python