I would like to generate a series of timestamps using Postgres's generate_series(), but it return the wrong number of results:
select generate_series(
now() - interval '1 year',
now(),
interval '1 year' / 365
);
I would expect 365 results, but it returns 371 results.
Each interval in the results represents a little less than a day, but I can't figure out why.
2017-10-21 19:21:01.355108
2017-10-22 19:01:17.761508
2017-10-23 18:41:34.167908
2017-10-24 18:21:50.574308
2017-10-25 18:02:06.980708
2017-10-26 17:42:23.387108