pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua Marsh <icub3d@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: CLUSTER using more memory than expected
Date: Wed, 25 Oct 2006 18:49:48 -0400
Message-ID: <5929.1161816588@sss.pgh.pa.us> (raw)
In-Reply-To: <38242de90610250913s119e84c6rcf167edd74eadd60@mail.gmail.com>
References: <38242de90610250913s119e84c6rcf167edd74eadd60@mail.gmail.com>

"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



view thread (5+ messages)  latest in thread

Message-ID: <5929.1161816588@sss.pgh.pa.us>
Permalink:  ../5929.1161816588@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5929.1161816588@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, icub3d@gmail.com
  Subject: Re: CLUSTER using more memory than expected
  In-Reply-To: <5929.1161816588@sss.pgh.pa.us>
  References: <38242de90610250913s119e84c6rcf167edd74eadd60@mail.gmail.com> <5929.1161816588@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox