pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Rick Dicaire <kritek@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: CLUSTER command
Date: Wed, 18 Jan 2012 09:08:04 -0600
Message-ID: <4F168BF40200002500044900@gw.wicourts.gov> (raw)
In-Reply-To: <CA+Cc--epWFt+SedYGu8bFwX_T-eRLoapDUq5FeGdDEbTWj08bA@mail.gmail.com>
References: <CA+Cc--epWFt+SedYGu8bFwX_T-eRLoapDUq5FeGdDEbTWj08bA@mail.gmail.com>

Rick Dicaire <kritek@gmail.com> wrote:
 
> Hi folks...pgsql 8.1 (we're migrating to 9.1 later this year).
 
Good idea.
 
> When running CLUSTER with no args, on tables with multiple
> indexes, do I understand correctly that the tables' primary key is
> the default index used?
 
To quote the fine documentations at:
 
www.postgresql.org/docs/8.1/interactive/sql-cluster.html
 
| When a table is clustered, PostgreSQL remembers on which index it
| was clustered. The form CLUSTER tablename reclusters the table on
| the same index that it was clustered before.
| 
| CLUSTER without any parameter reclusters all the tables in the
| current database that the calling user owns, or all tables if
| called by a superuser. (Never-clustered tables are not included.)
 
> Also, I've been tasked with finding and listing all the tables
> that get CLUSTER'd when CLUSTER with no args is executed,
 
http://www.postgresql.org/docs/8.1/interactive/catalog-pg-index.html
 
-Kevin



view thread (7+ messages)  latest in thread

Message-ID: <4F168BF40200002500044900@gw.wicourts.gov>
Permalink:  ../4F168BF40200002500044900@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F168BF40200002500044900@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, kritek@gmail.com
  Subject: Re: CLUSTER command
  In-Reply-To: <4F168BF40200002500044900@gw.wicourts.gov>
  References: <CA+Cc--epWFt+SedYGu8bFwX_T-eRLoapDUq5FeGdDEbTWj08bA@mail.gmail.com> <4F168BF40200002500044900@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox