Re: Maintaining cluster order on insert - Mailing list pgsql-patches

From Tom Lane
Subject Re: Maintaining cluster order on insert
Date
Msg-id 28914.1155154622@sss.pgh.pa.us
Whole thread Raw
In response to Maintaining cluster order on insert  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Maintaining cluster order on insert  ("Jonah H. Harris" <jonah.harris@gmail.com>)
List pgsql-patches
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> While thinking about index-organized-tables and similar ideas, it
> occurred to me that there's some low-hanging-fruit: maintaining cluster
> order on inserts by trying to place new heap tuples close to other
> similar tuples.

Doesn't this happen for free if there's enough space?  UPDATE tries to
place the new tuple on the same page it's already on.  In practice
people are only likely to cluster by primary keys (or other things that
seldom change) so I don't particularly agree with inventing a large wart
to support "optimally" placing things somewhere else...

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #2569: statement_timeout bug on Windows
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #2569: statement_timeout bug on Windows