Re: CLUSTER using more memory than expected - Mailing list pgsql-admin

From Tom Lane
Subject Re: CLUSTER using more memory than expected
Date
Msg-id 5929.1161816588@sss.pgh.pa.us
Whole thread Raw
In response to CLUSTER using more memory than expected  ("Joshua Marsh" <icub3d@gmail.com>)
Responses Re: CLUSTER using more memory than expected  ("Joshua Marsh" <icub3d@gmail.com>)
List pgsql-admin
"Joshua Marsh" <icub3d@gmail.com> writes:
> The CLUSTER function seems to be using more memory than I expect.

CLUSTER will eat maintenance_work_mem during index rebuilds --- more or
less.  You shouldn't expect these numbers to be dead on, particularly
not in older releases.  It looks like your 2Gb spec has turned into
3.6Gb actually eaten, which is a bit sloppier accounting than I'd like
but not overly surprising.  (FWIW, I think CVS HEAD is better than 8.0
at measuring sort workspace.)

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Vacuum Problems (locking)
Next
From: Tom Lane
Date:
Subject: Re: pg_restore and drop table problems