If you're looking to generate a date series, see this question
Let's say I want to generate a series for every 5 minutes for 24 hours. How do I do that in PostgreSQL?
PostgreSQL can generate_series() from a timestamp, but not from time.
Is it better to pick an arbitrary timestamp, or is there another way to generate the series?