Commit 68958665 authored by Peter Eisentraut's avatar Peter Eisentraut

psql: Improve \pset without arguments

Revert the output of the individual backslash commands that change print
settings back to the 9.3 way (not showing the command name in
parentheses).  Implement \pset without arguments separately, showing all
settings with values in a table form.
parent 7feaccc2
This diff is collapsed.
...@@ -54,23 +54,25 @@ no rows returned for \gset ...@@ -54,23 +54,25 @@ no rows returned for \gset
\unset FETCH_COUNT \unset FETCH_COUNT
-- show all pset options -- show all pset options
\pset \pset
Border style (border) is 1. border 1
Target width (columns) unset. columns 0
Expanded display (expanded) is off. expanded off
Field separator (fieldsep) is "|". fieldsep '|'
Default footer (footer) is on. fieldsep_zero off
Output format (format) is aligned. footer on
Line style (linestyle) is ascii. format aligned
Null display (null) is "". linestyle ascii
Locale-adjusted numeric output (numericlocale) is off. null ''
Pager (pager) is used for long output. numericlocale off
Record separator (recordsep) is <newline>. pager 1
Table attributes (tableattr) unset. recordsep '\n'
Title (title) unset. recordsep_zero off
Tuples only (tuples_only) is off. tableattr
Unicode border linestyle is "single". title
Unicode column linestyle is "single". tuples_only off
Unicode border linestyle is "single". unicode_border_linestyle single
unicode_column_linestyle single
unicode_header_linestyle single
-- test multi-line headers, wrapping, and newline indicators -- test multi-line headers, wrapping, and newline indicators
prepare q as select array_to_string(array_agg(repeat('x',2*n)),E'\n') as "ab prepare q as select array_to_string(array_agg(repeat('x',2*n)),E'\n') as "ab
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment