Re: Memory usage and configuration settings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory usage and configuration settings
Дата
Msg-id 13258.1330967604@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory usage and configuration settings  (Mike C <smith.not.western@gmail.com>)
Список pgsql-general
Mike C <smith.not.western@gmail.com> writes:
> Ok, that makes sense. With regards to work_mem, am I right in thinking
> the child processes only allocate enough memory to meet the task at
> hand, rather than the full 16M specified in the config file?

They only allocate what's needed ... but you have to keep in mind that
work_mem is *per operation*, eg per sort or hash.  A complex query could
require several such steps and thus eat several times work_mem.

            regards, tom lane

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

Предыдущее
От: Mike C
Дата:
Сообщение: Re: Memory usage and configuration settings
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Return unknown resultset from a function