Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q3RiR-0005Mk-If for pgsql-general@arkaria.postgresql.org; Mon, 29 May 2023 01:30:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q3RiQ-0007ae-Ap for pgsql-general@arkaria.postgresql.org; Mon, 29 May 2023 01:30:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q3RiQ-0007aV-0R for pgsql-general@lists.postgresql.org; Mon, 29 May 2023 01:30:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q3RiN-002QfK-0g for pgsql-general@lists.postgresql.org; Mon, 29 May 2023 01:30:28 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 34T1UP6V2484364; Sun, 28 May 2023 21:30:25 -0400 From: Tom Lane To: "=?gb18030?B?zsTSuw==?=" <896634148@qq.com> cc: pgsql-general@lists.postgresql.org Subject: Re: A question about generate_series In-reply-to: References: Comments: In-reply-to "=?gb18030?B?zsTSuw==?=" <896634148@qq.com> message dated "Mon, 29 May 2023 09:24:39 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <94718.1685323825.1@sss.pgh.pa.us> Date: Sun, 28 May 2023 21:30:25 -0400 Message-ID: <94719.1685323825@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "=?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