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: Re: Incremental clustering?
Date: Mon, 05 Jan 2004 13:54:16 -0500
Message-ID: <BC1F1D08.71363%siracusa@mindspring.com> (raw)
In-Reply-To: <m3isjri9fe.fsf@wolfe.cbbrowne.com>

On 1/4/04 6:24 PM, Christopher Browne wrote:
> The cluster operation potentially has to reorder all the tuples, and
> the fact that the table is already _partially_ organized only
> diminishes the potential.  If the new data, generally added "at the
> end," has values that are fairly uniformly distributed across the
> index, then the operation really will have to reorder all of the
> tuples...

What about the special case of a table that is clustered on a column and all
subsequent inserts will add rows with ever-increasing values of that column?
This would be the case for creation dates or even a column created from a
sequence.  Basically, after clustering, it would be nice if you could tell
the system to "only add to the end" and to "add in clustered order."

Programming for special cases is annoying, but sometimes it really helps.

-John




view thread (4+ messages)  latest in thread

Message-ID: <BC1F1D08.71363%siracusa@mindspring.com>
Permalink:  ../BC1F1D08.71363%25siracusa@mindspring.com/
Also on:    postgresql.org/message-id/BC1F1D08.71363%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: <BC1F1D08.71363%siracusa@mindspring.com>
  References: <m3isjri9fe.fsf@wolfe.cbbrowne.com> <BC1F1D08.71363%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