Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMSs0-00AaVu-2O for pgsql-admin@arkaria.postgresql.org; Fri, 21 Nov 2025 15:16:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vMSry-007q9z-03 for pgsql-admin@arkaria.postgresql.org; Fri, 21 Nov 2025 15:16:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMSrx-007q9q-28 for pgsql-admin@lists.postgresql.org; Fri, 21 Nov 2025 15:16:17 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMSrv-000jwO-2U for pgsql-admin@lists.postgresql.org; Fri, 21 Nov 2025 15:16:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5ALFGB8g2180759; Fri, 21 Nov 2025 10:16:11 -0500 From: Tom Lane To: "David G. Johnston" cc: lejeczek , "pgsql-admin@lists.postgresql.org" Subject: Re: What is paging my psql In-reply-to: References: <5844ca0b-4015-4c56-a43a-f44608185477.ref@yahoo.co.uk> <5844ca0b-4015-4c56-a43a-f44608185477@yahoo.co.uk> <0dcb33c5-ca74-4003-9808-adfb4a2d3655@yahoo.co.uk> Comments: In-reply-to "David G. Johnston" message dated "Fri, 21 Nov 2025 07:34:07 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2180757.1763738171.1@sss.pgh.pa.us> Date: Fri, 21 Nov 2025 10:16:11 -0500 Message-ID: <2180758.1763738171@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > Whether the pager is used is conditioned on actual output data. IIRC, you can do "\pset pager always" if you want the pager to be invoked regardless of the query output length. Be aware though that the default pager is "more", which (at least on my Linux box) silently does nothing special if the output is less than a screenful. If the behavior you are looking for is "wait for a keystroke even after very short output", you'd need to combine the \pset setting with "export PSQL_PAGER=less" or similar. regards, tom lane