Re: parallel index creation: maintenance_work_mem not honored?

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: parallel index creation: maintenance_work_mem not honored?
Дата
Msg-id CAH2-Wz=s47yo-gi5tdE1xneEB9nkBU4stzJMMiJ-Ny5qibkfzg@mail.gmail.com
обсуждение исходный текст
Ответ на parallel index creation: maintenance_work_mem not honored?  (Fabio Pardi <f.pardi@portavita.eu>)
Ответы Re: parallel index creation: maintenance_work_mem not honored?  (Fabio Pardi <f.pardi@portavita.eu>)
Список pgsql-admin
On Mon, Jun 20, 2022 at 2:42 AM Fabio Pardi <f.pardi@portavita.eu> wrote:
> Is this behavior expected? I cannot find mentions on the documentation nor on the literature available to me.

Yes, this is expected. Parallel CREATE INDEX performs its parallel
sort by having workers generate sorted runs, which are written to temp
files, and then having the leader process merge the sorted runs
together as the index is built.

In the case where there is amble maintenance_work_mem, all writes to
and reads from temp files will be sequential.

-- 
Peter Geoghegan



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

Предыдущее
От: Fabio Pardi
Дата:
Сообщение: parallel index creation: maintenance_work_mem not honored?
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: postrgesql query planner wrong desicion