| От | Tom Lane |
|---|---|
| Тема | Re: Index on timestamp field, and now() |
| Дата | |
| Msg-id | 21636.1013528095@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Index on timestamp field, and now() (Denis Perchine <dyp@perchine.com>) |
| Ответы |
Re: Index on timestamp field, and now()
|
| Список | pgsql-general |
Denis Perchine <dyp@perchine.com> writes:
> webmailstation=> explain select * from queue where send_date > timestamp
> 'now';
> But I use a comparison with now() + '20 years'::interval, not with now()...
That's not the example you quoted. More to the point, if you write it
that way then it isn't a constant, at least not in 7.2's limited
understanding of what constant values are. You could work around that
with a custom function marked isCachable; see the archives.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера