Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYig0-0006DQ-CG for pgsql-general@arkaria.postgresql.org; Tue, 09 Jan 2018 01:26:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYifz-0007eT-Mf for pgsql-general@arkaria.postgresql.org; Tue, 09 Jan 2018 01:26:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eYifz-0007YQ-8L for pgsql-general@lists.postgresql.org; Tue, 09 Jan 2018 01:26:03 +0000 Received: from cafe.concordia.psi.br ([189.91.194.2]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eYifr-00070t-NN for pgsql-general@postgresql.org; Tue, 09 Jan 2018 01:26:00 +0000 Received: from MarcioPC (unknown [186.226.37.77]) (Authenticated sender: marcio@zyontecnologia.com.br) by cafe.concordia.psi.br (Postfix) with ESMTPA id 531971000F23 for ; Mon, 8 Jan 2018 23:25:51 -0200 (BRST) From: =?iso-8859-1?Q?M=E1rcio_A._Sepp?= To: "'pgsql-general'" Subject: help with generation_series in pg10 Date: Mon, 8 Jan 2018 23:25:51 -0200 Message-ID: <00bb01d388e8$c9607b50$5c2171f0$@com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdOI6Mkc5zDSKo84SNyvCb/ElH5ecA== Content-Language: pt-br List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, In pg10 generation series doesn't work like in 9.5.=20 Ex. in 9.5: z=3D# 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=3D# 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?=20 I need it to date type to... if possible.=20 -- Att. M=E1rcio A. Sepp