Re: work_mem and shared_buffers

Поиск
Список
Период
Сортировка
Искать
От
Bill Moran
Тема
Re: work_mem and shared_buffers
Дата
Msg-id
20071109150809.e75af5b3.wmoran@collaborativefusion.com
Ответ на
Список
Дерево обсуждения
work_mem and shared_buffers "Campbell, Lance" <lance@uiuc.edu>
Re: work_mem and shared_buffers Heikki Linnakangas <heikki@enterprisedb.com>
Re: work_mem and shared_buffers "Campbell, Lance" <lance@uiuc.edu>
Re: work_mem and shared_buffers Bill Moran <wmoran@collaborativefusion.com>
Re: work_mem and shared_buffers Cédric Villemain <cedric.villemain@dalibo.com>
Re: work_mem and shared_buffers "Campbell, Lance" <lance@uiuc.edu>
Re: work_mem and shared_buffers "Scott Marlowe" <scott.marlowe@gmail.com>
Re: work_mem and shared_buffers Simon Riggs <simon@2ndquadrant.com>
Re: work_mem and shared_buffers "Scott Marlowe" <scott.marlowe@gmail.com>
Re: work_mem and shared_buffers "Campbell, Lance" <lance@uiuc.edu>
Re: work_mem and shared_buffers "Scott Marlowe" <scott.marlowe@gmail.com>
Re: work_mem and shared_buffers Erik Jones <erik@myemma.com>
Re: work_mem and shared_buffers "Scott Marlowe" <scott.marlowe@gmail.com>
On Fri, 9 Nov 2007 12:08:57 -0600
"Campbell, Lance"  wrote:

> How do you know when you should up the value of work_mem?  Just play
> with the number.  Is there a query I could do that would tell me if
> PostgreSql is performing SQL that could use more memory for sorting?

8.2 and older, it can be difficult to know, and I don't have a specific
recommendation.

8.3 includes a parameter to log the usage of temporary files by Postgres.
When a sort can't fit in the available memory, it uses a temp file, thus
you could use this new feature to track when sorts don't fit in
work_mem.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
В списке pgsql-performance по дате отправления
От: Campbell, Lance
Дата:
От: Campbell, Lance
Дата:
FAQ