Re: What *_mem to increase when running CLUSTER - Mailing list pgsql-performance

From Tom Lane
Subject Re: What *_mem to increase when running CLUSTER
Date
Msg-id 14786.1125001190@sss.pgh.pa.us
Whole thread Raw
In response to What *_mem to increase when running CLUSTER  (Andrew Lazarus <andrew@pillette.com>)
List pgsql-performance
Andrew Lazarus <andrew@pillette.com> writes:
> Should I temporarily increase sort_mem, vacuum_mem, neither, or both
> when doing a CLUSTER on a large (100 million row) table

The only part of that job that can use lots of memory is the index
rebuilds.  In recent PG versions maintenance_work_mem is the thing
to increase for an index build; previously sort_mem controlled it.
I forget when the changeover was; maybe 8.0.

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Read/Write block sizes
Next
From: Ron
Date:
Subject: Re: Read/Write block sizes