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@xxxxxxxxxx>
07/15/2009 08:48 PM |
|
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