Re: descending Indexes

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Bupp Phillips <noname(at)spam(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: descending Indexes
Date: 2003-09-04 19:30:46
Message-ID: 20030904122945.P44205-100000@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 4 Sep 2003, Bupp Phillips wrote:

> I can't find a way to create descending Indexes in PG. Is this possible?
>
> If so, can you point me in the right direction?
> If not, can I request this to be an enhancement?

You can do it, but it's a bit difficult. You need to make an operator
class for the type in question that orders in the reverse order and use
that operator class in making the index. I don't remember if I sent an
example the last time this came up, but you might want to check the
archives.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bjørn T Johansen 2003-09-04 19:31:52 Backup?
Previous Message Stephan Szabo 2003-09-04 19:29:17 Re: Replaceing records