From: raghu ram <raghuchennuru@gmail.com>
To: Raghavendra <raghavendra.rao@enterprisedb.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Cc: pgsql-general <pgsql-general@postgresql.org>
Cc: pgsql novice <pgsql-novice@postgresql.org>
Subject: Re: Can we Flush the Postgres Shared Memory ?
Date: Tue, 3 May 2011 19:00:46 +0530
Message-ID: <BANLkTinmZhDFg-PV5sztAYVLMm7Qm-+p7w@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=VtowCtuQTmjmnTiEk7mYAY8X2dw@mail.gmail.com>
References: <BANLkTikKE-iZQ3u_Voevgr2EpPFYjb2yng@mail.gmail.com>
<BANLkTikUYxYXUv-FsDQtN0CYiqkJ1BorXw@mail.gmail.com>
<BANLkTi=VtowCtuQTmjmnTiEk7mYAY8X2dw@mail.gmail.com>
On Tue, May 3, 2011 at 6:01 PM, Raghavendra <
raghavendra.rao@enterprisedb.com> wrote:
>
> On Tue, May 3, 2011 at 5:37 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>
>> On Tue, May 3, 2011 at 11:54 AM, raghu ram <raghuchennuru@gmail.com>
>> wrote:
>>
>> > It may be a silly question, still out of curiosity I want to know, is
>> there
>> > any possible way to flush the Postgres Shared Memory without restarting
>> the
>> > cluster.
>> > In Oracle, we can flush the SGA, can we get the same feature here..
>> > Thanks in Advance.
>>
>>
>> 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??
--Raghu Ram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: raghuchennuru@gmail.com, raghavendra.rao@enterprisedb.com, simon@2ndquadrant.com, pgsql-general@postgresql.org, pgsql-novice@postgresql.org
Subject: Re: Can we Flush the Postgres Shared Memory ?
In-Reply-To: <BANLkTinmZhDFg-PV5sztAYVLMm7Qm-+p7w@mail.gmail.com>
References: <BANLkTikKE-iZQ3u_Voevgr2EpPFYjb2yng@mail.gmail.com> <BANLkTikUYxYXUv-FsDQtN0CYiqkJ1BorXw@mail.gmail.com> <BANLkTi=VtowCtuQTmjmnTiEk7mYAY8X2dw@mail.gmail.com> <BANLkTinmZhDFg-PV5sztAYVLMm7Qm-+p7w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox