Building a scalable time-series database on PostgreSQL | Hacker News Reader