Re: Multiple Order By Criteria - Mailing list pgsql-performance

From Stephan Szabo
Subject Re: Multiple Order By Criteria
Date
Msg-id 20060117143952.D47156@megazone.bigpanda.com
Whole thread Raw
In response to Re: Multiple Order By Criteria  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
On Tue, 17 Jan 2006, Josh Berkus wrote:

> J,
>
> > I have an index built for each of these columns in my order by clause.
> > This query takes an unacceptable amount of time to execute. Here are the
> > results of the explain:
>
> You need a single index which has all five columns, in order.

I think he'll also need a reverse opclass for the first column in the
index or for the others since he's doing desc, asc, asc, asc, asc.

pgsql-performance by date:

Previous
From: J@Planeti.Biz
Date:
Subject: Re: Multiple Order By Criteria
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Autovacuum / full vacuum