Re: date_trunc function in interval version - Mailing list pgsql-hackers

From John Naylor
Subject Re: date_trunc function in interval version
Date
Msg-id CANWCAZaAAdb_J86MpSsozSpegvcHhbnDtg4-JFiajTLtUZj5QQ@mail.gmail.com
Whole thread Raw
In response to Re: date_trunc function in interval version  (Przemysław Sztoch <przemyslaw@sztoch.pl>)
Responses Re: date_trunc function in interval version
List pgsql-hackers
On Sat, Dec 23, 2023 at 5:26 AM Przemysław Sztoch <przemyslaw@sztoch.pl> wrote:
>
> In my opinion date_trunc is very good name.
> Truncated data is timestamp type, not interval.
> First parameter has same meaning in original date_trunc and in my new version.
> New version provides only more granularity.

I haven't looked at the patch, but your description sounds awfully
close to date_bin(), which already takes an arbitrary interval.



pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: Transaction timeout
Next
From: John Naylor
Date:
Subject: Re: A typo in a messsage?