Re: postgres vacuum memory limits

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: postgres vacuum memory limits
Дата
Msg-id CAKFQuwYeDYxvrm4JrdpH=EUQw=+u10gvN0h7Z0MBFAUHK_qxqA@mail.gmail.com
обсуждение исходный текст
Ответ на postgres vacuum memory limits  (Ayub M <hiayub@gmail.com>)
Ответы Re: postgres vacuum memory limits  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Saturday, July 31, 2021, Ayub M <hiayub@gmail.com> wrote:

But when default_statistics_target is increased to 3000, the session usage is 463mb


IIUC, the analyze process doesn’t consult maintenance_work_mem.  It simply creates an array, in memory, to hold the random sample of rows needed for computing the requested statistics.

I skimmed the docs but didn’t get a firm answer beyond the fact that vacuum is an example command that consult maintenance_work_mem and analyze is not mentioned in the same list.  I did find:

‘The largest statistics target among the columns being analyzed determines the number of table rows sampled to prepare the statistics. Increasing the target causes a proportional increase in the time and space needed to do ANALYZE.”David J.


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

Предыдущее
От: Ayub M
Дата:
Сообщение: postgres vacuum memory limits
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Help with writing a generate_series(tsmultirange, interval)