Re: When does CLUSTER occur?

From: "Schnabel, Robert D(dot)" <schnabelr(at)missouri(dot)edu>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Cc: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Subject: Re: When does CLUSTER occur?
Date: 2012-11-29 17:42:46
Message-ID: C20A71F48B88EF419C0DC4A5514984462814B5@UM-MBX-N03.um.umsystem.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----Original Message-----
From: Jeff Janes [mailto:jeff(dot)janes(at)gmail(dot)com]
Sent: Thursday, November 29, 2012 11:19 AM
To: Schnabel, Robert D.
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] When does CLUSTER occur?

On Thu, Nov 29, 2012 at 8:11 AM, Schnabel, Robert D.
<schnabelr(at)missouri(dot)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.

Cheers,

Jeff
[Schnabel, Robert D.]
That's what I thought because I just went through this exercise for another table which was previously clustered. The correlation on the column for the index was 1. After I did the drop index, insert data, create index with the cluster command the correlation was <1.

Thanks for the clarification.

Bob

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Christensen 2012-11-29 17:43:27 Re: When does CLUSTER occur?
Previous Message Shaun Thomas 2012-11-29 17:41:44 Re: youtube video on pgsql integrity