Re: What *_mem to increase when running CLUSTER

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: andrew(at)pillette(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: What *_mem to increase when running CLUSTER
Date: 2005-08-25 20:19:50
Message-ID: 14786.1125001190@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Andrew Lazarus <andrew(at)pillette(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ron 2005-08-25 20:26:34 Re: Read/Write block sizes
Previous Message Josh Berkus 2005-08-25 19:45:03 Re: Read/Write block sizes