pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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;
> &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?

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





view thread (4+ messages)  latest in thread

Message-ID: <94719.1685323825@sss.pgh.pa.us>
Permalink:  ../94719.1685323825@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/94719.1685323825@sss.pgh.pa.us

 · 

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: 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