Re: clustering takes too long!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ravindra Guravannavar" <ravindrag(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: clustering takes too long!
Date: 2006-06-22 15:40:08
Message-ID: 209.1150990808@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Ravindra Guravannavar" <ravindrag(at)gmail(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-06-22 17:05:01 Re: Question on failure during cluster operation
Previous Message Jeff Frost 2006-06-22 14:52:47 Re: strange fsm issues