Re: [ADMIN] Can we Flush the Postgres Shared Memory ? - Mailing list pgsql-general

From Simon Riggs
Subject Re: [ADMIN] Can we Flush the Postgres Shared Memory ?
Date
Msg-id BANLkTim6ucpFuytq=kf2ignxFUeUK2N=1Q@mail.gmail.com
Whole thread Raw
In response to Re: [ADMIN] Can we Flush the Postgres Shared Memory ?  (raghu ram <raghuchennuru@gmail.com>)
List pgsql-general
On Tue, May 3, 2011 at 2:30 PM, raghu ram <raghuchennuru@gmail.com> wrote:

>>> The CHECKPOINT command will do this for you.
>>
>>
>
> According to PostgreSQL documentation, whenever you execute "CHECKPOINT" in
> the database,it will flush the modified data files presented in the Shared
> Buffers retuned to the Disk.
>            http://www.postgresql.org/docs/9.0/static/sql-checkpoint.html
> Is this clears the entire shared memory cache and same time,if i execute
> fresh SQL statement, Data will be retuned from disk??

No, but then you'd need to flush OS buffers and all disk caches as
well to make that effective.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: [ADMIN] Can we Flush the Postgres Shared Memory ?
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] Can we Flush the Postgres Shared Memory ?