From: | Mike Christensen <mike(at)kitchenpc(dot)com> |
---|---|
To: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
Cc: | "Schnabel, Robert D(dot)" <schnabelr(at)missouri(dot)edu>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: When does CLUSTER occur? |
Date: | 2012-11-29 17:28:26 |
Message-ID: | CABs1bs02TEpuQO6JMa9q+1oqHsfAVoc_Buo5gywwL+eNT7agoA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Nov 29, 2012 at 9:19 AM, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:
> 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.
>
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..
From | Date | Subject | |
---|---|---|---|
Next Message | Shaun Thomas | 2012-11-29 17:33:05 | Re: When does CLUSTER occur? |
Previous Message | Jeff Janes | 2012-11-29 17:19:28 | Re: When does CLUSTER occur? |