Re: timestamp with time zone a la sql99 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: timestamp with time zone a la sql99
Date
Msg-id 23329.1098736357@sss.pgh.pa.us
Whole thread Raw
In response to Re: timestamp with time zone a la sql99  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> As long as we're willing to live with the understanding that +1day 1 hour may
> produce a slightly different result than + 25 hours, I don't see the problem.

Right, which is exactly why we can't accept the spec's restriction that
the hour field be limited to 0-23.  People may legitimately want to add
48 hours to a timestamp, and *not* have that mean the same as adding
"2 days".  Besides, we would have a backwards-compatibility problem if
we tried to forbid it, since as you note we've always accepted such input.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: timestamp with time zone a la sql99
Next
From: Josh Berkus
Date:
Subject: Lamar stepping down