Re: Question about maintenance_work_mem and shared_buffer

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: Question about maintenance_work_mem and shared_buffer
Дата
Msg-id CA+HiwqFq7idrYNdLthhXOV=2jawp0k++9w1+Auzz4hHbX9b2fg@mail.gmail.com
обсуждение исходный текст
Ответ на Question about maintenance_work_mem and shared_buffer  (Rodrigo Barboza <rodrigombufrj@gmail.com>)
Ответы Re: Question about maintenance_work_mem and shared_buffer
Список pgsql-admin
On Wed, May 22, 2013 at 12:07 AM, Rodrigo Barboza
<rodrigombufrj@gmail.com> wrote:
> Hi, everyone.
> I have a doubt.
> I have a 32-bit postrgesql running with 2.5gb of shared_buffer.
> And I have maintenance_work_mem = 1gb and autovacuum_max_workers = 3.
> How maintenance_work_mem is related to shared_buffer?

They are independent settings.

> If the 3 workers uses 1gb, will the database crash?

Documentation does warn about not setting it (maintenance_work_mem) too high:

"Note that when autovacuum runs, up to autovacuum_max_workers times
this memory may be allocated, so be careful not to set the default
value too high."

http://www.postgresql.org/docs/9.3/static/runtime-config-resource.html

--
Amit Langote


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

Предыдущее
От: Rodrigo Barboza
Дата:
Сообщение: Question about maintenance_work_mem and shared_buffer
Следующее
От: Rodrigo Barboza
Дата:
Сообщение: Re: Question about maintenance_work_mem and shared_buffer