Re: date_trunc invalid units with infinite value

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Joseph Koshakow <koshy44@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-12-27T04:42:22Z
Lists: pgsql-hackers
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.
--
Michael

Commits

  1. Improve tests of date_trunc() with infinity and unsupported units

  2. Fix incorrect Datum conversion in timestamptz_trunc_internal()

  3. Improve handling of date_trunc() units for infinite input values