Re: time stops within transaction

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: time stops within transaction
Дата
Msg-id 200010180321.XAA26807@candle.pha.pa.us
обсуждение исходный текст
Ответ на time stops within transaction  (Alex Pilosov <alex@pilosoft.com>)
Список pgsql-hackers
Wow, that is strange.


> I just ran into a strangest thing: within transaction, select now() will
> always return time when transaction started. Same happens with select
> 'now'::timestamp.
> 
> This is with 7.0. I have not tested it with CVS.
> 
> I am not sure what causes this. I assume that result of now() is cached by
> fmgr. Is there a way to declare functions 'not-cacheable-ever'? If there
> is, such should be applied to now().
> 
> -alex
> 
> 


--  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,
Pennsylvania19026
 


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

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: time stops/workaround
Следующее
От: Tom Lane
Дата:
Сообщение: Re: time stops within transaction