Re: Transactions and timestamps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniel Åkerud <zilch(at)home(dot)se>
Cc: "PostgreSQL-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transactions and timestamps
Date: 2001-08-07 15:45:14
Message-ID: 4747.997199114@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?Q?Daniel_=C5kerud?= <zilch(at)home(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-08-07 15:47:24 Re: Database handle destroyed without explicit disconnect
Previous Message Sue Lane 2001-08-07 15:37:01 Re: Database handle destroyed without explicit disconnect