Re: "where x between y and z" for timestamp data types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "where x between y and z" for timestamp data types
Дата
Msg-id 14441.1344806904@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "where x between y and z" for timestamp data types  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: "where x between y and z" for timestamp data types  (M Q <thekaib@gmail.com>)
Список pgsql-novice
Jeff Davis <pgsql@j-davis.com> writes:
> I briefly tried your example and I didn't see a problem. Can you provide
> some sample data that illustrates your problem? Also, is the "date"
> field a date or a timestamp? And why are the upper and lower bounds of
> the BETWEEN identical?

I'll bet a nickel the planner is choosing a different plan when it
doesn't know that the timestamp range condition is extremely selective.

            regards, tom lane


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: "where x between y and z" for timestamp data types
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Joining time fields?