Timeseries with PostgreSQL

from blog Alex Plescan, | ↗ original
How to use set-returning functions in PostgreSQL to generate simple timeseries data