Re: Slow Index Creation, why is it not consuming more memory. - Mailing list pgsql-performance

From Peter Geoghegan
Subject Re: Slow Index Creation, why is it not consuming more memory.
Date
Msg-id CAEYLb_XBryqSJ9e+4px3sw=Od9wLSB-1hjdvXfAe-1p6ZebrHw@mail.gmail.com
Whole thread Raw
In response to Slow Index Creation, why is it not consuming more memory.  (Tory M Blue <tmblue@gmail.com>)
List pgsql-performance
On Mon, Dec 7, 2015 at 10:36 PM, Tory M Blue <tmblue@gmail.com> wrote:
> What am I not understanding missing?

Yes. There is a hard limit on the number of tuples than can be sorted
in memory prior to PostgreSQL 9.4. It's also the case that very large
work_mem or maintenance_work_mem settings are unlikely to help unless
they result in a fully internal sort.

There is evidence that the heap that tuple sorting uses benefits from
*lower* settings. Sometimes as low as 64MB.

We're working to make this better in 9.6.

--
Regards,
Peter Geoghegan


pgsql-performance by date:

Previous
From: Tory M Blue
Date:
Subject: Slow Index Creation, why is it not consuming more memory.
Next
From: Tory M Blue
Date:
Subject: checkpoints, proper config