Re: descending Indexes - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: descending Indexes
Date
Msg-id 20030905134014.GB11657@wolff.to
Whole thread Raw
In response to Re: descending Indexes  ("Relaxin" <noname@spam.com>)
List pgsql-general
On Thu, Sep 04, 2003 at 18:24:01 -0700,
  Relaxin <noname@spam.com> wrote:
> Yes, I really *need* a descending index.

Can you go into more detail about this?

Generally you only need a descending index if it has more than one part
and one part needs to be ascending and the other needs to be descending.
If this case then general solution is to create a new operator class.
In 7.4, you will be able to get around this is some cases by using a
functional index on - whatever and using - whatever in the query. (This
will only work on datatypes that have a unary - defined, so is pretty much
limited to numeric types.)

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Replaceing records
Next
From: Bjørn T Johansen
Date:
Subject: Re: [PERFORM] Seq scan of table?