Re: Index not being used

Поиск
Список
Период
Сортировка
От Matthew Price
Тема Re: Index not being used
Дата
Msg-id 20020214.170439.16294.16467@wm8.jersey.juno.com
обсуждение исходный текст
Ответ на Index not being used  (Matthew Price <pricem@juno.com>)
Ответы Re: Index not being used  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-sql
>Please post your PostgreSQL version, and the actual explain output of
>both queries. 

EXPLAIN SELECT cdate FROM sometable WHERE cdate = current_date;

NOTICE:  QUERY PLAN:

Seq Scan on sometable  (cost=0.00..332.70 rows=71 width=186)



EXPLAIN SELECT cdate FROM sometable WHERE cdate = '02/14/2002';

NOTICE:  QUERY PLAN:

Index Scan using sometable_cdate on sometable  (cost=0.00..66.64 rows=71 width=186)


My postgres version is 7.1.3


Again, thanks for any help
Matthew Price



________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.


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

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