Re: [GENERAL] CURRENT_TIMESTAMP - Mailing list pgsql-sql

From Tom Lane
Subject Re: [GENERAL] CURRENT_TIMESTAMP
Date
Msg-id 9760.1032838513@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] CURRENT_TIMESTAMP  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [GENERAL] CURRENT_TIMESTAMP
Re: [GENERAL] CURRENT_TIMESTAMP
List pgsql-sql
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I was thinking 'transaction_timestamp' for the transaction start time, and
> current_timestamp for the statement start time.  I would equate now()
> with current_timestamp.

So you want to both (a) invent even more nonstandard syntax than we
already have, and (b) break as many traditional-Postgres applications
as you possibly can?

'transaction_timestamp' has no reason to live.  It's not in the spec.
And AFAIK the behavior of now() has been well-defined since the
beginning of Postgres.  If you want to change 'current_timestamp' to
conform to a rather debatable reading of the spec, then fine --- but
keep your hands off of now().
        regards, tom lane


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Monitoring a Query
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] CURRENT_TIMESTAMP