One more example of generating time series

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: postgresql(at)taljaren(dot)se
Subject: One more example of generating time series
Date: 2020-11-10 23:05:52
Message-ID: 160504955209.25505.11628601059886349351@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/functions-srf.html
Description:

I find this kind of query very useful:

If you don't know the end date, but you know how many time steps to add, you
can use a query like this
select now()+ '1 day'::interval *generate_series(1,5);

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2020-11-10 23:06:36 Re: Missing file is mentioned on page https://www.postgresql.org/docs/13/libpq-exec.html
Previous Message David G. Johnston 2020-11-10 21:58:26 Re: Additional Chapter for Tutorial