Re: Allow sorts to use more available memory

Поиск
Список
Период
Сортировка
От Andy Colson
Тема Re: Allow sorts to use more available memory
Дата
Msg-id 4E6E4944.1010800@squeakycode.net
обсуждение исходный текст
Ответ на Re: Allow sorts to use more available memory  (Shaun Thomas <sthomas@peak6.com>)
Список pgsql-performance
On 9/12/2011 12:57 PM, Shaun Thomas wrote:
> On 09/12/2011 12:47 PM, Andy Colson wrote:
>
>> work_mem is not the total a query can use. I believe each step can
>> use that much, and each backend can use it for multiple bits. So if
>> you had two backends, each doing 2 sorts, you'd use 2*2 = 4 * 2GB =
>> 8GB.
>
> Exactly. Find a big query somewhere in your system. Use EXPLAIN to
> examine it.

Yeah, and even better, on PG 9, if you EXPLAIN ANALYZE it'll show you
just how much memory is actually being used.

-Andy

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

Предыдущее
От: Shaun Thomas
Дата:
Сообщение: Re: Allow sorts to use more available memory
Следующее
От: Robert Schnabel
Дата:
Сообщение: Re: Allow sorts to use more available memory