Re: Transactions and timestamps - Mailing list pgsql-general

From Tom Lane
Subject Re: Transactions and timestamps
Date
Msg-id 4747.997199114@sss.pgh.pa.us
Whole thread Raw
In response to Transactions and timestamps  (Daniel Åkerud <zilch@home.se>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Another seq scan instead of index question
Next
From: "Sue Lane"
Date:
Subject: Re: Database handle destroyed without explicit disconnect