Re: Transactions and timestamps

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transactions and timestamps
Дата
Msg-id 4747.997199114@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Transactions and timestamps  (Daniel Åkerud <zilch@home.se>)
Список pgsql-general
=?iso-8859-1?Q?Daniel_=C5kerud?= <zilch@home.se> writes:
> If I do

> BEGIN
> UPDATE some_session set time_stop =3D CURRENT_TIMESTAMP
> UPDATE another_session set time_start =3D CURRENT_TIMESTAMP
> END

> Is there any chance the current_timestamp will be different?

No.  CURRENT_TIMESTAMP is actually the time of the start of the
transaction.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Another seq scan instead of index question
Следующее
От: "Sue Lane"
Дата:
Сообщение: Re: Database handle destroyed without explicit disconnect