Re: Why is the query not using the index for sorting? - Mailing list pgsql-performance

From Jonathan Blitz
Subject Re: Why is the query not using the index for sorting?
Date
Msg-id 29E33C74F48D41AC93995E684525D58F@jblaptop
Whole thread Raw
In response to Re: Why is the query not using the index for sorting?  (Matthew Wakeling <matthew@flymine.org>)
List pgsql-performance
Definitely after.

Jonathan

-----Original Message-----
From: pgsql-performance-owner@postgresql.org
[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Matthew
Wakeling
Sent: Monday, November 23, 2009 1:00 PM
To: Jonathan Blitz
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Why is the query not using the index for sorting?

On Sun, 22 Nov 2009, Jonathan Blitz wrote:
> I have a table with a number of columns.
>  
> I perform
>  
> Select *
> from table
> order by a,b
>  
> There is an index on a,b which is clustered (as well as indexes on a and b
alone).
> I have issued the cluster and anyalze commands.

Did you analyse *after* creating the index and clustering, or before?

Matthew

--
 [About NP-completeness] These are the problems that make efficient use of
 the Fairy Godmother.                    -- Computer Science Lecturer
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.709 / Virus Database: 270.14.76/2517 - Release Date: 11/22/09
21:40:00


pgsql-performance by date:

Previous
From: Matthew Wakeling
Date:
Subject: Re: Query times change by orders of magnitude as DB ages
Next
From: Robert Haas
Date:
Subject: Re: View based upon function won't use index on joins