test=*# select * from demo;
val
-----
a
b
c
d
e
(5 rows)
test=*# select demo.* from demo left join (select * from generate_series(1,2)) s on true;
val
-----
a
a
b
b
c
c
d
d
e
e
(10 rows)
test=*# select demo.* from demo left join (select * from generate_series(1,3)) s on true;
val
-----
a
a
a
b
b
b
c
c
c
d
d
d
e
e
e
(15 rows)
test=*#