diff options
| author | Andrew Dunstan | 2015-03-28 15:07:41 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2015-03-28 15:07:41 +0000 |
| commit | 7655f4ccea570d57c4d473cd66b755c03c904942 (patch) | |
| tree | 66c54949a4abf3816b9826709728317889053bd5 /src/bin/psql/common.c | |
| parent | cfe12763c32437bc708a64ce88a90c7544f16185 (diff) | |
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.
Diffstat (limited to 'src/bin/psql/common.c')
| -rw-r--r-- | src/bin/psql/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 15488ff0357..2e7d9a45cb3 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1337,7 +1337,7 @@ ExecQueryUsingCursor(const char *query, double *elapsed_msec) * If query requires multiple result sets, hack to ensure that * only one pager instance is used for the whole mess */ - pset.queryFout = PageOutput(100000, my_popt.topt.pager); + pset.queryFout = PageOutput(100000, &(my_popt.topt)); did_pager = true; } |
