Re: [GENERAL] Curiousity about indexing, again

Поиск
Список
Период
Сортировка
Искать
От
Herouth Maoz
Тема
Re: [GENERAL] Curiousity about indexing, again
Дата
Msg-id
l03130303b3a64d4d615e@[147.233.159.109]
Ответ на
Список
Дерево обсуждения
Curiousity about indexing, again Felix Morley Finch <felix@crowfix.com>
Re: [GENERAL] Curiousity about indexing, again Herouth Maoz <herouth@oumail.openu.ac.il>
At 07:11 +0300 on 05/07/1999, Felix Morley Finch wrote:


> Adding "where 'now' > stmp" (stmp is type datetime) tricks the optimizer
> appropriately.  However, it only does so for "order by stmp".  If I
> use "order by stmp DESC", explain says it will have to sort before
> doing the index scan.

Hmm. It strikes me that if "where 'now' > stmp" helped you with an
ascending sort, something like "where '-infinity' < stmp" should help you
with a descending sort. But this is merely a shot in the dark.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma


В списке pgsql-general по дате отправления
От: Tamas Nyitrai
Дата:
От: Leon
Дата:
Сообщение: Joins and links
FAQ