Re: Why extract( ... from timestamp ) is not immutable?

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Why extract( ... from timestamp ) is not immutable?
Дата
Msg-id 201201250810.20394.adrian.klaver@gmail.com
обсуждение исходный текст
Ответ на Re: Why extract( ... from timestamp ) is not immutable?  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: Why extract( ... from timestamp ) is not immutable?  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
On Wednesday, January 25, 2012 7:48:34 am hubert depesz lubaczewski wrote:
> On Wed, Jan 25, 2012 at 07:44:14AM -0800, Adrian Klaver wrote:
> > > I thought that this is what I will achieve with extract(epoch from
> > > now() at time zone 'UTC') but clearly it doesn't work.
> > > So what options do I have?
> >
> > Isn't extract(epoch from now()) getting what you want?
>
> you can't make index on it.

I am afraid I am not following. So you can make an index on?:

extract(epoch from now() at time zone 'UTC')

>
> Best regards,
>
> depesz

--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Why extract( ... from timestamp ) is not immutable?
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Index on parent/child hierarchy