How to shape sample data with PostgreSQL generate_series() and SQL | Dark Hacker News