Re: descending Indexes

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: descending Indexes
Дата
Msg-id 20030905134014.GB11657@wolff.to
обсуждение исходный текст
Ответ на Re: descending Indexes  ("Relaxin" <noname@spam.com>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Replaceing records
Следующее
От: Bjørn T Johansen
Дата:
Сообщение: Re: [PERFORM] Seq scan of table?