Re: Can we Flush the Postgres Shared Memory ?

From: raghu ram <raghuchennuru(at)gmail(dot)com>
To: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org>, pgsql novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Can we Flush the Postgres Shared Memory ?
Date: 2011-05-03 13:30:46
Message-ID: BANLkTinmZhDFg-PV5sztAYVLMm7Qm-+p7w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-novice

On Tue, May 3, 2011 at 6:01 PM, Raghavendra <
raghavendra(dot)rao(at)enterprisedb(dot)com> wrote:

>
> On Tue, May 3, 2011 at 5:37 PM, Simon Riggs <simon(at)2ndquadrant(dot)com> wrote:
>
>> On Tue, May 3, 2011 at 11:54 AM, raghu ram <raghuchennuru(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Merlin Moncure 2011-05-03 13:51:07 Re: [GENERAL] Can we Flush the Postgres Shared Memory ?
Previous Message Dimitar Atanasov 2011-05-03 12:52:37 Re: Postgresql backup bash script.

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2011-05-03 13:37:42 Re: Database recovery.
Previous Message Jasen Betts 2011-05-03 13:05:14 Re: converting databases form SQL_ASCII to UTF8

Browse pgsql-novice by date

  From Date Subject
Next Message Merlin Moncure 2011-05-03 13:51:07 Re: [GENERAL] Can we Flush the Postgres Shared Memory ?
Previous Message Sébastien D'Errico 2011-05-03 13:18:07 create a database with encoding LATIN1