Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
michael-ax
· 4y ago · 0 comments
one is counting distance, the other one buckets. alias the fn name to datebucketdelta to make the different problems memorable individually. :)
Comments
[–]
castorp
4y ago
Well for "counting buckets" you can use `date_bin()` since Postgres 14 which groups the difference between timestamps into defined intervals.