Re: Index not being used

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Index not being used
Дата
Msg-id 20020214150423.R24897-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: Index not being used  ("Josh Berkus" <josh@agliodbs.com>)
Ответы Re: Index not being used  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Thu, 14 Feb 2002, Josh Berkus wrote:

> Matthew,
>
> 1. Is field cdate DATE or TIMESTAMP?
> 2. What happens with:
> EXPLAIN SELECT cdate FROM sometable WHERE cdate = '2001-02-14'::DATE or
>  TIMESTAMP?
> 3. Please time both queries and give the number of resulting rows from
>  both queries.

Something tells me that current_date is probably not in a form that's
considered indexable.  You could probably get around that with an
iscachable function hiding it however.



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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Index not being used
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index not being used