Comment Comment by castorp Well for "counting buckets" you can use `date_bin()` since Postgres 14 which groups the difference between timestamps into defined intervals. parent castorp 4 years ago