| От | Bruce Momjian |
|---|---|
| Тема | Re: Index on timestamp field, and now() |
| Дата | |
| Msg-id | 200202121811.g1CIBvG01831@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Index on timestamp field, and now() (Denis Perchine <dyp@perchine.com>) |
| Список | pgsql-general |
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > Tom Lane wrote: > >> Correct, it's the now() function that's not cachable --- but you can get > >> around that with the "timestamp 'now'" kluge. > > > Isn't CURRENT_TIMESTAMP the preferred method for this? > > Doesn't make any difference as far as this point is concerned. > CURRENT_TIMESTAMP isn't cachable either. My point was that CURRENT_TIMESTAMP in the more standard way; 'now' is a PostgreSQL-ism. Both work fine. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера