Re: CURRENT_DATE and CURRENT_TIME return incorrect values - Mailing list pgsql-general

From Tom Lane
Subject Re: CURRENT_DATE and CURRENT_TIME return incorrect values
Date
Msg-id 10670.1054317223@sss.pgh.pa.us
Whole thread Raw
In response to Re: CURRENT_DATE and CURRENT_TIME return incorrect values  (valerian <valerian2@hotpop.com>)
List pgsql-general
valerian <valerian2@hotpop.com> writes:
> The only thing I can think of is that pgsql cached an old date and time,
> for some reason, and used that for the first record, and then actually
> queried the system's date/time after that.

Is it possible that the entry was made from a transaction that had been
sitting open for two days?  now() and related functions return
transaction start time.

            regards, tom lane

pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: CURRENT_DATE and CURRENT_TIME return incorrect values
Next
From: greg@turnstep.com
Date:
Subject: Re: fomatting an interval (resend)