From a45388d6e0984abb02074f0300cd9c5cbda13848 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Mon, 25 Jul 2022 14:24:50 -0400 Subject: Add xheader_width pset option to psql The setting controls tha maximum length of the header line in expanded format output. Possible settings are full, column, page, or an integer. the default is full, the current behaviour, and in this case the header line is the length of the widest line of output. column causes the header to be truncated to the width of the first column, page causes it to be truncated to the width of the terminal page, and an integer causes it to be truncated to that value. If the full value is less than the page or integer value no truncation occurs. If given without an argument this option prints its current setting. Platon Pronko, somewhat modified by me. Discussion: https://postgr.es/m/f03d38a3-db96-a56e-d1bc-dbbc80bbde4d@gmail.com --- doc/src/sgml/ref/psql-ref.sgml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 65bb0a6a3f3..a95ddd60ee2 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -2842,6 +2842,39 @@ lo_import 152801 + + xheader_width + + + Sets the maximum width of the header for expanded output to one of + full (the default value), + column, page, or an + integer value. + + + + full: the expanded header is not truncated, + and will be as wide as the widest output + line. + + + + column: truncate the header line at the + width of the first column. + + + + page: truncate the the header line at the terminal + width. + + + + integer value: specify + the exact maximum width of the header line. + + + + fieldsep -- cgit v1.2.3