From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ravindra Guravannavar <ravindrag@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: clustering takes too long!
Date: Thu, 22 Jun 2006 11:40:08 -0400
Message-ID: <209.1150990808@sss.pgh.pa.us> (raw)
In-Reply-To: <5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com>
References: <5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com>
"Ravindra Guravannavar" <ravindrag@gmail.com> writes:
> I am trying to cluster an index on the TPC-H lineitem table having
> 6 million records. The index is on a single column l_suppkey. Postgres
> (8.1.3) is not able to finish the operation even after 2 hours! The disk
> is being accessed continuously and CPU is at 2%. Postmaster is
> started with the following options:
> -B 2000 --work-mem=10240 --maintenance_work_mem=10240 --wal_buffers=32
> --checkpoint_segments=128 --checkpoint_timeout=600
You should increase maintenance_work_mem for large reindexing
operations. That shared_buffers setting is about a factor of 10 too
small too.
regards, tom lane
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, ravindrag@gmail.com
Subject: Re: clustering takes too long!
In-Reply-To: <209.1150990808@sss.pgh.pa.us>
References: <5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com> <209.1150990808@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