Do cast affects index usage?

Поиск
Список
Период
Сортировка
От Anibal David Acosta
Тема Do cast affects index usage?
Дата
Msg-id 004301cda8b4$fdc57bd0$f9507370$@devshock.com
обсуждение исходный текст
Ответы Re: Do cast affects index usage?  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: Do cast affects index usage?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance

I have a table with a column of type timestamp with time zone, this column has an index

 

If I do a select like this

 

select * from mytable where cast(my_date as timestamp without time zone) > '2012-10-12 20:00:00'

 

this query will use the index over the my_date column?

 

Thanks

 

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

Предыдущее
От: Korisk
Дата:
Сообщение: Re: hash aggregation
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Do cast affects index usage?