Y
Hacker News
new
|
ask
|
show
|
jobs
by
michael-ax
1642 days ago
one is counting distance, the other one buckets. alias the fn name to datebucketdelta to make the different problems memorable individually. :)
1 comments
castorp
1642 days ago
Well for "counting buckets" you can use `date_bin()` since Postgres 14 which groups the difference between timestamps into defined intervals.
link