Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Sam Mason <sam(at)samason(dot)me(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data
Date: 2009-06-02 00:57:06
Message-ID: 29716.1243904226@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-06-02 01:00:43 Re: pg_standby -l might destory the archived file
Previous Message Robert Haas 2009-06-02 00:39:30 Re: Patch: AdjustIntervalForTypmod shouldn't discard high-order data