Re: date_trunc invalid units with infinite value - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: date_trunc invalid units with infinite value
Date
Msg-id 4bf60a84-2862-4a53-acd5-8eddf134a60e@eisentraut.org
Whole thread Raw
Responses Re: date_trunc invalid units with infinite value
List pgsql-hackers
On 27.12.24 05:42, Michael Paquier wrote:
> On Tue, Dec 24, 2024 at 04:33:47PM +0900, Michael Paquier wrote:
>> I am planning to get this one applied around the end of this week on
>> Friday for HEAD, that should be enough if there are comments and/or
>> objections.
> 
> And done for now.  If there are any remarks and/or objections, of
> course feel free.

It turned out this had a bug, and also the newly added test cases didn't 
actually cover the new code, otherwise this would have shown up.

Please review the attached patches with additional test cases and the fix.

See also [0] for further context:

[0]: 
https://www.postgresql.org/message-id/8246d7ff-f4b7-4363-913e-827dadfeb145%40eisentraut.org
Attachment

pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Logical Replication of sequences
Next
From: Peter Eisentraut
Date:
Subject: Re: Datum as struct