public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: David G. Johnston <[email protected]>
Cc: lejeczek <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: What is paging my psql
Date: Fri, 21 Nov 2025 10:16:11 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwbYJivMKDN4Uf14zj7ggkDsHi4tfVws-=6G41v8+NOx-A@mail.gmail.com>
References: <[email protected]>
	<[email protected]>
	<CAKFQuwYBR-VLCs7qxL_oS81Lw_to5Gs0GZ5MsaYk0eaaZtHdJA@mail.gmail.com>
	<[email protected]>
	<CAKFQuwbYJivMKDN4Uf14zj7ggkDsHi4tfVws-=6G41v8+NOx-A@mail.gmail.com>

"David G. Johnston" <[email protected]> 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





view thread (12+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: What is paging my psql
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox