Re: Clustered table order is not preserved on insert

From: ptjm(at)interlog(dot)com (Patrick TJ McPhee)
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Clustered table order is not preserved on insert
Date: 2006-04-27 02:58:37
Message-ID: 4baqatF10bjmfU1@uni-berlin.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <20060427001523(dot)GR97354(at)pervasive(dot)com>,
Jim C. Nasby <jnasby(at)pervasive(dot)com> wrote:

% Keep reading... from the same paragraph:
%
% Clustering is a one-time operation: when the table is subsequently
% updated, the changes are not clustered.

But this isn't really relevant to the question. More to the point
is this tidbit from the documentation for SELECT:

If the ORDER BY clause is specified, the returned rows are
sorted in the specified order. If ORDER BY is not given, the
rows are returned in whatever order the system finds fastest
to produce.

This is not necessarily the order in which they're stored on disk.
--

Patrick TJ McPhee
North York Canada
ptjm(at)interlog(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message belfegor666 2006-04-27 03:27:06 PostgreSQL 8.1 + PHP5.1.x/4.4.2 + Apache 2.0.55/1.3.34 PROBLEM!! PLEASE HELP
Previous Message Bob Shearer 2006-04-27 02:40:12 pg_dump