Re: Do cast affects index usage?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Do cast affects index usage?
Дата
Msg-id 27829.1350092048@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Do cast affects index usage?  ("Anibal David Acosta" <aa@devshock.com>)
Список pgsql-performance
"Anibal David Acosta" <aa@devshock.com> writes:
> Because I need to get all rows where datetime is greater than (for example)
> '2012-10-10 00:00:00' but ignoring timezone, so basically I need to truncate
> timezone
> This can be done by converting to timestamp without timezone.

[ shrug... ]  It can also be done without that.  Whatever your cutoff
time is can be expressed as a timestamp *with* tz.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: problems with large objects dump
Следующее
От: Stefan Keller
Дата:
Сообщение: Index over all partitions (aka global index)?