Re: Index on timestamp field, and now()

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Index on timestamp field, and now()
Дата
Msg-id 200202121759.g1CHxVV00246@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Index on timestamp field, and now()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Index on timestamp field, and now()
Список pgsql-general
Tom Lane wrote:
> Denis Perchine <dyp@perchine.com> writes:
> > Oups. Sorry my mistake. But 7.2's limited understanding is enough to do
> > constant propagation as far as I can see. :-)))
>
> 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?

--
  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 по дате отправления:

Предыдущее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: postgresql -- what's in a name?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Index on timestamp field, and now()