Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 60B5E1337C47; Tue, 3 May 2011 10:41:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 55213-04-6; Tue, 3 May 2011 13:41:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id 6150F1337C2E; Tue, 3 May 2011 10:30:47 -0300 (ADT) Received: by vws1 with SMTP id 1so50795vws.19 for ; Tue, 03 May 2011 06:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=P9PscoR+wIbgcMzKVD7l+/IT4uZAmmo44KYbOv5sWYQ=; b=w+WK2ObD8dri9VspfIjoGLJPAZXN/14nDQU1kBc7je4n9EZ5Q56n5w2WwyZuDCfexH 6wi8oVuapbc/nvUEfdUyMQgqHpOpXiO84Kz50xAvZifimiaR4nH2fR+/2iK3iRake5Uz S3la614bhEyOfScD+G7xVBrcJ/4jmKNwzHjl4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TI4O+i63MmTk3fuZ06HAyHM5QQRyYJSXc1x+RZdTB4rJRo47jBL/aXY/nmsinSewWx +Pydhu2U6ZKqeUn+R5jtsD6gEIYEvuqiXF/ik047N7ITE58dLHD0eQG9K2w1gJjluik0 sjtH2PtjF9g0QiUBpFzFAhTACt5Qj5xnbxJ7g= MIME-Version: 1.0 Received: by 10.52.18.14 with SMTP id s14mr6443294vdd.164.1304429446361; Tue, 03 May 2011 06:30:46 -0700 (PDT) Received: by 10.52.109.99 with HTTP; Tue, 3 May 2011 06:30:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 May 2011 19:00:46 +0530 Message-ID: Subject: Re: Can we Flush the Postgres Shared Memory ? From: raghu ram To: Raghavendra Cc: Simon Riggs , pgsql-admin , pgsql-general , pgsql novice Content-Type: multipart/alternative; boundary=20cf3054a12fc8f18c04a25f2561 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.916 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_FONT_FACE_BAD=0.981, HTML_MESSAGE=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/21 X-Sequence-Number: 37458 --20cf3054a12fc8f18c04a25f2561 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > >> On Tue, May 3, 2011 at 11:54 AM, raghu ram >> 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 --20cf3054a12fc8f18c04a25f2561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, May 3, 2011 at 6:01 PM, Raghaven= dra <raghavendra.rao@enterprisedb.com> wrote:=

On Tue, May 3, 2011 at 5:37 PM, Simon R= iggs <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 restartin= g 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.


Acco= rding to PostgreSQL documentation, whenever you execute "CHECKPOINT&qu= ot; in the database,it will flush the modified data files presented in the = Shared Buffers retuned to the Disk.


<= div>Is this clears the entire shared memory cache and same time,if i execut= e fresh SQL statement, Data will be retuned from disk??

=A0

--Raghu Ram

=

--20cf3054a12fc8f18c04a25f2561--