pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Siracusa <siracusa@mindspring.com>
To: Postgres Admin <pgsql-admin@postgresql.org>
Subject: Incremental clustering?
Date: Sun, 04 Jan 2004 17:57:07 -0500
Message-ID: <BC1E0473.219B0%siracusa@mindspring.com> (raw)

The docs say:

"Clustering is a one-time operation: when the table is subsequently updated,
the changes are not clustered. That is, no attempt is made to store new or
updated rows according to their index order. If one wishes, one can
periodically recluster by issuing the command again."

and

"During the cluster operation, a temporary copy of the table is created that
contains the table data in the index order. Temporary copies of each index
on the table are created as well. Therefore, you need free space on disk at
least equal to the sum of the table size and the index sizes."

I don't relish totally locking and making a temporary copy of my biggest
table, but that's exactly the table that seems to need clustering the most.
Will subsequent cluster command also make a complete copy?  Some form of
"incremental clustering" would be nice...

-John 




view thread (4+ messages)  latest in thread

Message-ID: <BC1E0473.219B0%siracusa@mindspring.com>
Permalink:  ../BC1E0473.219B0%25siracusa@mindspring.com/
Also on:    postgresql.org/message-id/BC1E0473.219B0%siracusa@mindspring.com

 · 

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: siracusa@mindspring.com
  Subject: Re: Incremental clustering?
  In-Reply-To: <BC1E0473.219B0%siracusa@mindspring.com>
  References: <BC1E0473.219B0%siracusa@mindspring.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