Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data
Date
Msg-id 29716.1243904226@sss.pgh.pa.us
Whole thread Raw
In response to Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> More to the point, it's also what 8.3.7 does:

Well, no, because the cases at issue are where an <interval qualifier>
is specified.  8.3 did this:

regression=# select '99 seconds'::interval second;interval 
----------00:00:39
(1 row)

and even more amusingly,

regression=# select interval '99' minute;interval 
----------00:01:00
(1 row)

regression=# select interval '99' hour;  interval 
----------00:00:00
(1 row)

It was all pretty broken back then.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data
Next
From: Tom Lane
Date:
Subject: Re: pg_standby -l might destory the archived file