Re: Bug #801: now() in transaction

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Bug #801: now() in transaction
Дата
Msg-id 20021018130630.GB25210@wolff.to
обсуждение исходный текст
Ответ на Bug #801: now() in transaction  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
On Fri, Oct 18, 2002 at 07:23:29 -0400,
  pgsql-bugs@postgresql.org wrote:
> Bhuvan A (bhuvansql@myrealbox.com) reports a bug with a severity of 2
> The lower the number the more severe it is.
>
> Short Description
> now() in transaction
>
> Long Description
> I am using 7.2.1. now() returns same value ever, within transaction. If we use now() say 10 times in the same
transaction,all 10 times we are getting the same value, irrespect of the interval. 7.2 too behaves similar.  

This is how it is supposed to work. If you need the current time, rather
than transaction start time, use timeofday().

This is covered in the documentation.

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #801: now() in transaction
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Pg 7.2.3 int8 value out of range