Re: CURRENT_DATE and CURRENT_TIME return incorrect values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: valerian <valerian2(at)hotpop(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CURRENT_DATE and CURRENT_TIME return incorrect values
Date: 2003-05-30 17:53:43
Message-ID: 10670.1054317223@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

valerian <valerian2(at)hotpop(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message greg 2003-05-30 18:37:06 Re: fomatting an interval (resend)
Previous Message Nigel J. Andrews 2003-05-30 17:42:05 Re: CURRENT_DATE and CURRENT_TIME return incorrect values