Re: Date/time value 'current' no longer available - Mailing list pgsql-general

From Tom Lane
Subject Re: Date/time value 'current' no longer available
Date
Msg-id 7140.1019943690@sss.pgh.pa.us
Whole thread Raw
In response to Date/time value 'current' no longer available  (Randall Perry <rgp@systame.com>)
Responses Re: Date/time value 'current' no longer available
List pgsql-general
Randall Perry <rgp@systame.com> writes:
> I'm upgrading to 7.2 and saw this in the FAQ. Does this mean any value with
> current at the beginning no longer works -- i.e. current_timestamp?

No, it means the magic value 'current' is no longer available.
This has nothing to do with any SQL-specified behavior; it was a
poorly-considered hack that we inherited from Berkeley.

> If not, what's suggested in it's place?

'now' still works, but doesn't have quite the same behavior ('now' is
converted to a specific timestamp upon input).

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: requesting features in PostgreSQL
Next
From: Randall Perry
Date:
Subject: Re: Date/time value 'current' no longer available