Re: timestamp default values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: timestamp default values
Date: 2005-08-07 04:47:19
Message-ID: 29199.1123390039@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brendan Jurd <direvus(at)gmail(dot)com> writes:
> If the current implementation of timenow() is truly obsolete, would it
> be verboten to change its return type? We could rewrite the function
> to return timestamp, for example.

[ shrug... ] This is just a variant of the choose-a-new-function-name
game. If we are going to choose a new function name, choosing one that
collides with an existing name (obsolete or not) doesn't seem like a
win to me. You could just as well choose another name, and avoid
angering whoever out there might still be using timenow().

BTW: at least with our current interpretation of these datatypes, the
only type that is sensible for a now()-like function to return is
timestamptz. Not plain timestamp; that cannot be considered to
represent a well-defined instant at all.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Jurd 2005-08-07 05:08:39 Re: timestamp default values
Previous Message Brendan Jurd 2005-08-07 04:41:22 Re: timestamp default values