Re: Indexes with descending date columns

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Theo Kramer <theo(at)flame(dot)co(dot)za>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Indexes with descending date columns
Date: 2006-03-23 13:24:49
Message-ID: 20060323132448.GB4881@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bendik Rognlien Johansen 2006-03-23 13:51:27 Problem with query, forget previous message
Previous Message Christopher Browne 2006-03-23 13:23:42 Re: Scaling up PostgreSQL in Multiple CPU / Dual Core Powered Servers