Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
michael-ax
4y ago
0 comments
Save
Share
one is counting distance, the other one buckets. alias the fn name to datebucketdelta to make the different problems memorable individually. :)
0 comments
1 comments · 1 top-level
top
newest
oldest
castorp
4y ago
Well for "counting buckets" you can use `date_bin()` since Postgres 14 which groups the difference between timestamps into defined intervals.
j
/
k
navigate · click thread line to collapse