Re: clock_timestamp() and transaction_timestamp() function

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Wang Mike <itlist(at)msn(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: clock_timestamp() and transaction_timestamp() function
Date: 2003-12-01 14:45:44
Message-ID: 200312011445.hB1EjiQ07071@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut wrote:
> Bruce Momjian writes:
>
> > The goal was to give a unified API to the various time measurements:
> >
> > [clock|statement|transaction]_timestamp
>
> It would be very useful if we had a parameter that controlled whether
> current_timestamp maps to statement_timestamp or to transaction_timestamp.
> There seems to be quite some disagreement over this issue, and this would
> help resolve it and also prevent users from unnecessarily using
> nonstandard functions in their application.
>
> The name "clock_timestamp" seems kind of unfortunate. Where else would a
> time stamp come from if not from the clock? Why is this functionality
> needed anyway? It seems that it could only serve to produce
> nondeterministic, unreproduceable results.

Agreed. You are thinking a GUC like statement_current_timestamp which
defaults to false?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-12-01 15:34:04 Re: clock_timestamp() and transaction_timestamp() function
Previous Message Bruce Momjian 2003-12-01 14:12:35 Re: ISO 8601 "Time Intervals" of the "format with time-unit