On Sat, Dec 23, 2023 at 5:26 AM Przemysław Sztoch <przemys...@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.