From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add a pager_min_lines setting to psql
Date: Sat, 28 Mar 2015 15:12:07 +0000
Message-ID: <E1YbsP9-0001Uf-Fa@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add a pager_min_lines setting to psql
If set, the pager will not be used unless this many lines are to be
displayed, even if that is more than the screen depth. Default is zero,
meaning it's disabled.
There is probably more work to be done in giving the user control over
when the pager is used, particularly when wide output forces use of the
pager regardless of how many lines there are, but this is a start.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/7655f4ccea570d57c4d473cd66b755c03c904942
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 12 ++++++++++++
src/bin/psql/command.c | 21 +++++++++++++++++++--
src/bin/psql/common.c | 2 +-
src/bin/psql/help.c | 12 ++++++------
src/bin/psql/input.c | 2 +-
src/bin/psql/print.c | 16 +++++++++++-----
src/bin/psql/print.h | 4 +++-
src/bin/psql/startup.c | 1 +
src/test/regress/expected/psql.out | 1 +
9 files changed, 55 insertions(+), 16 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: andrew@dunslane.net
Subject: Re: pgsql: Add a pager_min_lines setting to psql
In-Reply-To: <E1YbsP9-0001Uf-Fa@gemulon.postgresql.org>
References: <E1YbsP9-0001Uf-Fa@gemulon.postgresql.org>
* 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