Re: Additional current timestamp values - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Additional current timestamp values
Date
Msg-id 200603202302.k2KN26J07336@candle.pha.pa.us
Whole thread Raw
In response to Re: Additional current timestamp values  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Additional current timestamp values
List pgsql-patches
Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Rather than applying the above patch, I have implemented this TODO
> > with the attached patch:
> >
> >     * Add transaction_timestamp(), statement_timestamp(),
> > clock_timestamp() functionality
>
> The most common complaint that I recall is that current_timestamp
> returns the transaction timestamp rather than the statement timestamp,
> which is what many expect.  How does your patch address that?

No, we believe the standard requires it.

> Do we really need clock_timestamp?

Yes, because timeofday() returns a unix text string.  Some people do
want a wallclock current timestamp.

--
  Bruce Momjian   http://candle.pha.pa.us
  SRA OSS, Inc.   http://www.sraoss.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Removal of backward-compatibility docs mentions
Next
From: Bruce Momjian
Date:
Subject: Re: Removal of backward-compatibility docs mentions