Re: Flush Shared Buffer Cache

From: Suvankar Roy <suvankar(dot)roy(at)tcs(dot)com>
To: Chander Ganesan <chander(at)otg-nc(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Flush Shared Buffer Cache
Date: 2009-07-16 05:23:15
Message-ID: OFF46F752A.C15FB624-ON652575F5.001C8D93-652575F5.001D484C@tcs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Chander,

Actually I am trying to figure out how much execution time any query is
taking is taking when executed for the first time.

Because once a query is executed for the first time, the query plan, data
buffer is cached so subsequently time taken is much lower.

For this, I want to have the Shared buffer cache flushed to note the
initial execution time.

Is my understanding correct here ?

Regards,

Suvankar Roy

Chander Ganesan <chander(at)otg-nc(dot)com>
07/15/2009 08:48 PM

To
Suvankar Roy <suvankar(dot)roy(at)tcs(dot)com>
cc
pgsql-admin(at)postgresql(dot)org
Subject
Re: [ADMIN] Flush Shared Buffer Cache

Suvankar Roy wrote:
>
> Hi,
>
> Can anyone help me out with how to flush out Shared Buffer Cache in
> Postgres.
>
> One way would be to restart the database, but I would like to avoid
that.
AFAIK, that's the only way.

Is there a reason that you need to dump the shared buffers? Perhaps if
we knew what you were trying to accomplish we could provide you with a
suitable solution that doesn't require a restart...

--
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, and other Open Source training delivered
worldwide.

ForwardSourceID:NT00004B0E
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Abraham, Danny 2009-07-16 08:11:06 Re: initdb --encoding=LATIN1 fails on Windows
Previous Message dayat 2009-07-16 03:57:28 Where 8.4.0 binaries-no-installer for win32