Re: CURRENT_TIMESTAMP not work correctly insinde a transaction.

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: CURRENT_TIMESTAMP not work correctly insinde a transaction.
Дата
Msg-id Pine.LNX.4.30.0202221702050.686-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: CURRENT_TIMESTAMP not work correctly insinde a transaction.  (Thomas Lockhart <lockhart@fourpalms.org>)
Ответы Re: CURRENT_TIMESTAMP not work correctly insinde a transaction.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Thomas Lockhart writes:

> > In a transaction until you commit your transaction through a jdbc
> > connection, each time you use the Current_timestamp (or 'now'), the
> > timestamps is always the same, and when your transaction is very long you
> > have undesirable effect.
>
> This is not a bug, but the behavior required by SQL9x afaicr.

AFAIK, this is PostgreSQL bugward compatibility.  SQL says that
current_timestamp returns the "current timestamp", which you can interpret
any way you want to.

--
Peter Eisentraut   peter_e@gmx.net

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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: CURRENT_TIMESTAMP not work correctly insinde a transaction.
Следующее
От: Coax
Дата:
Сообщение: Possible bug concerning LASTOID in 7.2