pgsql: Add a pager_min_lines setting to psql

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add a pager_min_lines setting to psql
Date: 2015-03-28 15:12:07
Message-ID: E1YbsP9-0001Uf-Fa@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-03-28 17:56:43 pgsql: Better fix for misuse of Float8GetDatumFast().
Previous Message Andrew Dunstan 2015-03-28 13:32:29 pgsql: Use standard librart sqrt function in pg_stat_statements