From: Bill Moran <wmoran@potentialtech.com>
To: Sorin N. Ciolofan <ciolofan@ics.forth.gr>
Cc: pgsql-general@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] pg_buffercache view
Date: Thu, 26 Apr 2007 08:32:11 -0400
Message-ID: <20070426083211.06c1c990.wmoran@potentialtech.com> (raw)
In-Reply-To: <20070426100013.5D3B68E40FC@mailhost.ics.forth.gr>
References: <20070424090254.037f7996.wmoran@potentialtech.com>
<20070426100013.5D3B68E40FC@mailhost.ics.forth.gr>
In response to "Sorin N. Ciolofan" <ciolofan@ics.forth.gr>:
>
> Hello!
>
> Do you know which could be the reasons that could conduce an application to
> not release the shared buffers, even after the application was shut down?
> I noticed that only if a pg_ctl restart command is issued some of the
> buffers are set free.
The reason would be "by design."
If the server flushes its cache every time the application restarts, the
cache isn't going to be very effective.
If PostgreSQL is using more shared buffers than you're comfortable with,
reduce the shared_buffers setting in the config. That will allow the OS
to decide how to use the memory instead.
--
Bill Moran
http://www.potentialtech.com
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: wmoran@potentialtech.com, ciolofan@ics.forth.gr, pgsql-general@postgresql.org
Subject: Re: [GENERAL] pg_buffercache view
In-Reply-To: <20070426083211.06c1c990.wmoran@potentialtech.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