generate_series demo
postgres=# postgres=# select * from generate_series(2,4); generate_series ----------------- 2 3 4 (3 rows) postgres=#