Re: Issue with now() within a transaction in pg74.213.jdbc.jar

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Issue with now() within a transaction in pg74.213.jdbc.jar
Дата
Msg-id Pine.BSO.4.56.0407011856190.3674@leary.csoft.net
обсуждение исходный текст
Ответ на Issue with now() within a transaction in pg74.213.jdbc.jar  ("John Pagakis" <thebfh@toolsmythe.com>)
Ответы Re: Issue with now() within a transaction in pg74.213.jdbc.jar  ("John Pagakis" <thebfh@toolsmythe.com>)
Список pgsql-jdbc

On Thu, 1 Jul 2004, John Pagakis wrote:

> Most of my tables have a last update date and during some testing in
> Postgres 7.4.1 I noticed that the last_update date was slightly in the past
> for anything updated within a transaction.  The amount it is off by seems to
> vary: as little as 30 seconds; as much as a couple of minutes.
>

This is not a JDBC issue.  now() always returns the time from the start of
the transaction.  If you want current wall clock time use timeofday().

Kris Jurka

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Issue with now() within a transaction in pg74.213.jdbc.jar
Следующее
От: Christopher Farley
Дата:
Сообщение: Puzzling Unix CLASSPATH issue...