Re: [ADMIN] pg_buffercache view

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: [ADMIN] pg_buffercache view
Дата
Msg-id 20070426083211.06c1c990.wmoran@potentialtech.com
обсуждение исходный текст
Ответ на Re: [ADMIN] pg_buffercache view  ("Sorin N. Ciolofan" <ciolofan@ics.forth.gr>)
Ответы Re: [ADMIN] pg_buffercache view  ("Sorin N. Ciolofan" <ciolofan@ics.forth.gr>)
Список pgsql-general
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

В списке pgsql-general по дате отправления:

Предыдущее
От: John DeSoi
Дата:
Сообщение: tsearch2 punctuation question
Следующее
От: Sim Zacks
Дата:
Сообщение: Re: [pgadmin-support] questions about cursors