From: | "Ravindra Guravannavar" <ravindrag(at)gmail(dot)com> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Cc: | ravindrag(at)gmail(dot)com |
Subject: | clustering takes too long! |
Date: | 2006-06-18 08:45:57 |
Message-ID: | 5d141cb10606180145y2d1b8f18m8d855aa77fbbd05d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Aaron Bono | 2006-06-18 21:29:57 | Re: pg_restore |
Previous Message | Tom Lane | 2006-06-18 05:06:36 | Re: pg_restore |