Search Postgresql Archives

Re: When does CLUSTER occur?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Nov 29, 2012 at 9:19 AM, Jeff Janes <jeff.janes@xxxxxxxxx> wrote:
On Thu, Nov 29, 2012 at 8:11 AM, Schnabel, Robert D.
<schnabelr@xxxxxxxxxxxx> 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..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux