Re: PostgreSQL's query caching behaviour

From: Chander Ganesan <chander(at)otg-nc(dot)com>
To: Jan-Peter(dot)Seifert(at)gmx(dot)de
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PostgreSQL's query caching behaviour
Date: 2009-01-22 21:52:13
Message-ID: 4978EA8D.5010609@otg-nc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jan-Peter(dot)Seifert(at)gmx(dot)de wrote:
> Hello,
>
> I've a question regarding caching of results in the PostgreSQL-Server.
>
If you restart the server it will clear out the shared buffer pool, and
subsequent queries would show the appropriate delay.. You can clear out
the OS disk cache (on linux) using the commands:

sync
echo 1 > /proc/sys/vm/drop_caches

That's likely what you are missing.

--
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC 27560
919-463-0999/877-258-8987
http://www.otg-nc.com
Expert PostgreSQL, PostGIS, MapServer, Python, PHP, Django and other Open Source Training.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gerd König 2009-01-23 12:24:39 pgpool-II question
Previous Message Scott Marlowe 2009-01-22 19:44:05 Re: Postgres 8.3.x upgrade