I've found a post describing how to count records grouped by date format. However, the author in this post uses MySQL:
select count(*), DATE_FORMAT(created_at,"%Y-%m-%d") as created_day FROM widgets GROUP BY created_day
Also, I store a unix timestamp under the started_at
field, so first I would have to convert it to a date or timestamp format. How can I do all of this in PostgreSQL?