aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-08-15 19:10:38 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-08-15 19:11:37 -0400
commit62c9eaf5535df8efb417600add99f6e0d111dac2 (patch)
treef398e1d2a5c27fd105045a8a1d21715c676f215c /src
parentc4dd62db1995d17b85c77d901b5eba8f25dfe2ff (diff)
downloadpostgresql-62c9eaf5535df8efb417600add99f6e0d111dac2.tar.gz
postgresql-62c9eaf5535df8efb417600add99f6e0d111dac2.zip
psql: Add tab completion for \pset pager
Author: Pavel Stehule <pavel.stehule@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/tab-complete.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 90d950b2364..68a2ba27aec 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3077,6 +3077,8 @@ psql_completion(const char *text, int start, int end)
}
else if (TailMatchesCS1("linestyle"))
COMPLETE_WITH_LIST_CS3("ascii", "old-ascii", "unicode");
+ else if (TailMatchesCS1("pager"))
+ COMPLETE_WITH_LIST_CS3("on", "off", "always");
else if (TailMatchesCS1("unicode_border_linestyle|"
"unicode_column_linestyle|"
"unicode_header_linestyle"))