Re: query memory consumption

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: query memory consumption
Дата
Msg-id 2f4958ff0909220541g2275e815pcc84b16a023d166a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: query memory consumption  (Alan McKay <alan.mckay@gmail.com>)
Ответы Re: query memory consumption  (Alan McKay <alan.mckay@gmail.com>)
Список pgsql-performance
On Tue, Sep 22, 2009 at 1:36 PM, Alan McKay <alan.mckay@gmail.com> wrote:

> Too high?  How high is too high?

in a very simple scenario, you have 100 connections opened, and all of
them run the query that was the reason you bumped work_mem to 256M.
All of the sudden postgresql starts to complain about lack of ram,
because you told it it could use max of
work_mem*number_of_connections.

Best practice to avoid that, is to bump the work_mem temporarily
before the query, and than lower it again, lowers the chance of memory
exhaustion.


--
GJ

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

Предыдущее
От: Alan McKay
Дата:
Сообщение: Re: query memory consumption
Следующее
От: Alan McKay
Дата:
Сообщение: Re: query memory consumption