Re: Index not being used

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index not being used
Дата
Msg-id 10780.1013733998@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Index not being used  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: Index not being used  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> Something tells me that current_date is probably not in a form that's
> considered indexable.

More to the point, it's not considered a constant.

You could writeWHERE cdate = date 'now'
instead.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Index not being used
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: trigger on table