Re: DecodeInterval fixes - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: DecodeInterval fixes
Date
Msg-id ZORKJMczV0BkmjGD@paquier.xyz
Whole thread Raw
In response to Re: DecodeInterval fixes  (Jacob Champion <jchampion@timescale.com>)
Responses Re: DecodeInterval fixes
List pgsql-hackers
On Mon, Jul 10, 2023 at 10:42:31AM -0700, Jacob Champion wrote:
> On Mon, Jul 10, 2023 at 10:19 AM Reid Thompson <jreidthompson@nc.rr.com> wrote:
>> I made a another pass through the separated patches, it looks good to
>> me.
>
> LGTM too. (Thanks Tom for the clarification on ECPG.)

+SELECT INTERVAL '42 days 2 seconds ago ago';
+SELECT INTERVAL '2 minutes ago 5 days';
[...]
+SELECT INTERVAL 'hour 5 months';
+SELECT INTERVAL '1 year months days 5 hours';

0002 and 0003 make this stuff fail, but isn't there a risk that this
breaks applications that relied on these accidental behaviors?
Assuming that this is OK makes me nervous.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: PG 16 draft release notes ready
Next
From: Michael Paquier
Date:
Subject: Re: Testing autovacuum wraparound (including failsafe)