From: Tom Lane <tgl@sss.pgh.pa.us>
To: 文一 <896634148@qq.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: A question about generate_series
Date: Sun, 28 May 2023 21:30:25 -0400
Message-ID: <94719.1685323825@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com>
References: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com>
"=?gb18030?B?zsTSuw==?=" <896634148@qq.com> writes:
> postgres=# SELECT x FROM generate_series(1, 25, 1) As x;
> x
> ----
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10
> 11
> 12
> 13
> 14
> 15
> 16
> 17
> 18
> 19
> 20
> 21
> Time: 0.518 ms
> My question is, why postgres didn't print the 22 to 25?
I'm betting there's something broken about your pager
settings, because 21 is as far as the display would get
in a standard-height (24 lines) xterm window. When I do
this I see
...
19
20
21
--More--
Since you're not getting a prompt but just the subsequent
\timing output, it seems that the rest of the output went
into the bit bucket, which psql would certainly never do
on its own. But a malfunctioning pager might act that way.
regards, tom lane
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: tgl@sss.pgh.pa.us, 896634148@qq.com
Subject: Re: A question about generate_series
In-Reply-To: <94719.1685323825@sss.pgh.pa.us>
References: <tencent_1568D62DADC69896431AC591B85D4947BB0A@qq.com> <94719.1685323825@sss.pgh.pa.us>
* 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