Re: Indexes with descending date columns - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: Indexes with descending date columns
Date
Msg-id 20060323132448.GB4881@surnet.cl
Whole thread Raw
In response to Re: Indexes with descending date columns  (Theo Kramer <theo@flame.co.za>)
Responses Array performance
List pgsql-performance
Theo Kramer wrote:

> All good input - thanks, however, before I start messing with my stuff
> which I know will be complex - some questions to any of the developers
> on the list.
>
> i  Is it feasible to extend index creation to support descending
>    columns? ... this is supported on other commercial and non
>    commercial databases, but I do not know if this is a SQL standard.

This can be done.  You need to create an operator class which specifies
the reverse sort order (i.e. reverse the operators), and then use it in
the new index.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-performance by date:

Previous
From: Bendik Rognlien Johansen
Date:
Subject: Problem with query, server totally unresponsive
Next
From: Christopher Browne
Date:
Subject: Re: Scaling up PostgreSQL in Multiple CPU / Dual Core Powered Servers