Re: When does CLUSTER occur? - Mailing list pgsql-general

From Mike Christensen
Subject Re: When does CLUSTER occur?
Date
Msg-id CABs1bs02TEpuQO6JMa9q+1oqHsfAVoc_Buo5gywwL+eNT7agoA@mail.gmail.com
Whole thread Raw
In response to Re: When does CLUSTER occur?  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: When does CLUSTER occur?  (Shaun Thomas <sthomas@optionshouse.com>)
List pgsql-general

On Thu, Nov 29, 2012 at 9:19 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
On Thu, Nov 29, 2012 at 8:11 AM, Schnabel, Robert D.
<schnabelr@missouri.edu> wrote:

> My question is whether or not the “ALTER TABLE gen1011 CLUSTER ON
> xgen1011_si_sn” actually clusters the table at that point or if it just
> tells it to use that index for clustering?

It just marks it to use that index if/when it is clustered, it doesn't
do the clustering.

It's always kinda annoyed me that the CLUSTER command in Postgres doesn't work like it does on Microsoft SQL.  In MSSQL, things will stay clustered as more data is inserted.  In PG, you'd have to keep running CLUSTER as some sort of maintenance task every so often, so it's more of a one time command..

pgsql-general by date:

Previous
From: Jeff Janes
Date:
Subject: Re: When does CLUSTER occur?
Next
From: Shaun Thomas
Date:
Subject: Re: When does CLUSTER occur?