From: Ravindra Guravannavar <ravindrag@gmail.com>
To: pgsql-admin@postgresql.org
Cc: ravindrag@gmail.com
Subject: clustering takes too long!
Date: Sun, 18 Jun 2006 14:15:57 +0530
Message-ID: <5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com> (raw)
Hi,
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
No useful messages in the logfile. With the default checkpoint_segments
(before I increased it to 128), there was a warning about checkpoints taking
place too frequently.
I tried this on two different machines and also with 8.1.4 and see the
same behavior.
On the same system, I am able to cluster an index on another much
larger table (10 million) records within few minutes.
Any clues on what could be going wrong?
Thanks,
Ravi
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: ravindrag@gmail.com
Subject: Re: clustering takes too long!
In-Reply-To: <5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com>
References: <5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com>
* 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