Re: Negative result with (now()-previously_inserted_timestamp)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PGSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Negative result with (now()-previously_inserted_timestamp)
Date: 2010-07-07 04:18:01
Message-ID: 25752.1278476281@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com> writes:
> I ran the following query, and got an unexpected negative value. Does this
> imply that SELECT-transaction was able to see a row created by
> INSERT-transaction which started after the SELECT-transaction?

Was the SELECT inside a BEGIN block?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Gurjeet Singh 2010-07-07 04:43:32 Re: Negative result with (now()-previously_inserted_timestamp)
Previous Message Gurjeet Singh 2010-07-07 04:07:38 Negative result with (now()-previously_inserted_timestamp)