From: Márcio A. Sepp <marcio@zyontecnologia.com.br>
To: 'pgsql-general' <pgsql-general@postgresql.org>
Subject: help with generation_series in pg10
Date: Mon, 8 Jan 2018 23:25:51 -0200
Message-ID: <00bb01d388e8$c9607b50$5c2171f0$@com.br> (raw)
Hi,
In pg10 generation series doesn't work like in 9.5.
Ex. in 9.5:
z=# select generate_series(1, 10), generate_series(1, 5);
generate_series | generate_series
-----------------+-----------------
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 | 1
7 | 2
8 | 3
9 | 4
10 | 5
(10 registros)
so, in version 10 the same sql show different result set.
z=# select generate_series(1, 10), generate_series(1,5);
generate_series | generate_series
-----------------+-----------------
1 | 1
2 | 2
3 | 3
4 | 4
5 | 5
6 |
7 |
8 |
9 |
10 |
(10 registros)
how can i have the same in pg10 as i have had in pg 9.x?
I need it to date type to... if possible.
--
Att.
Márcio A. Sepp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: marcio@zyontecnologia.com.br
Subject: Re: help with generation_series in pg10
In-Reply-To: <00bb01d388e8$c9607b50$5c2171f0$@com.br>
References: <00bb01d388e8$c9607b50$5c2171f0$@com.br>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox