pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 文一 <896634148@qq.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: A question about generate_series
Date: Mon, 29 May 2023 09:24:39 +0800
Message-ID: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com> (raw)

Hi team,
when I use the generate_series,as you can see
(Fedora Linux 37, PGSQL 15.3)



postgres=# SELECT x FROM generate_series(1, 25, 1) As x;
&nbsp;x &nbsp;
----
&nbsp; 1
&nbsp; 2
&nbsp; 3
&nbsp; 4
&nbsp; 5
&nbsp; 6
&nbsp; 7
&nbsp; 8
&nbsp; 9
&nbsp;10
&nbsp;11
&nbsp;12
&nbsp;13
&nbsp;14
&nbsp;15
&nbsp;16
&nbsp;17
&nbsp;18
&nbsp;19
&nbsp;20
&nbsp;21
Time: 0.518 ms



My question is, why postgres didn't print the 22 to 25?
Can someone give some advice?
Thanks in advance!



Yours,
Wen Yi

view thread (4+ messages)  latest in thread

Message-ID: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com>
Permalink:  ../tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com/
Also on:    postgresql.org/message-id/tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com

 · 

reply

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: 896634148@qq.com
  Subject: Re: A question about generate_series
  In-Reply-To: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com>
  References: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com>

* 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