pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Douglas J Hunley <doug@hunley.homeip.net>
To: pgsql-performance@postgresql.org
Subject: questions about CLUSTER
Date: Wed, 27 Feb 2008 11:01:57 -0500
Message-ID: <200802271101.57169.doug@hunley.homeip.net> (raw)

After reviewing http://www.postgresql.org/docs/8.3/static/sql-cluster.html a 
couple of times, I have some questions:
1) it says to run analyze after doing a cluster. i'm assuming autovacuum will 
take care of this? or should i go ahead and do the analyze 'now' instead of 
waiting?
2) is there any internal data in the db that would allow me to 
programmatically determine which tables would benefit from being clustered?
3) for that matter, is there info to allow me to determine which index it 
should be clustered on in cases where the table has more than one index?
4) for tables with >1 indexes, does clustering on one index negatively impact 
queries that use the other indexes?
5) is it better to cluster on a compound index (index on lastnamefirstname) or 
on the underlying index (index on lastname)?

tia
-- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
http://doug.hunley.homeip.net

Everything takes twice as long as you plan for and produces results about half 
as good as you hoped.



view thread (5+ messages)  latest in thread

Message-ID: <200802271101.57169.doug@hunley.homeip.net>
Permalink:  ../200802271101.57169.doug@hunley.homeip.net/
Also on:    postgresql.org/message-id/200802271101.57169.doug@hunley.homeip.net

 · 

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-performance@postgresql.org
  Cc: doug@hunley.homeip.net
  Subject: Re: questions about CLUSTER
  In-Reply-To: <200802271101.57169.doug@hunley.homeip.net>
  References: <200802271101.57169.doug@hunley.homeip.net>

* 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