aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-11-22 12:17:49 +0900
committerMichael Paquier <michael@paquier.xyz>2024-11-22 12:17:49 +0900
commite6d6f2e46b57c0b89ecc6b9d37b571165f7c02a1 (patch)
tree656cc9f8d1fc62e8d56499d17a46219dca432296
parent8a9a515188c8cdac3193d85d975eeaff872dd036 (diff)
downloadpostgresql-e6d6f2e46b57c0b89ecc6b9d37b571165f7c02a1.tar.gz
postgresql-e6d6f2e46b57c0b89ecc6b9d37b571165f7c02a1.zip
psql: Include \pset xheader_width in --help=commands|variables
psql's --help was missed the description of the \pset variable xheader_width, that should be listed when using \? or --help=commands, and described for --help=variables. Oversight in a45388d6e098. Author: Pavel Luzanov Discussion: https://postgr.es/m/1e3e06d6-0807-4e62-a9f6-c11481e6eb10@postgrespro.ru Backpatch-through: 16
-rw-r--r--src/bin/psql/help.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 6f58a110748..98af878724f 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -294,7 +294,7 @@ slashUsage(unsigned short int pager)
" numericlocale|pager|pager_min_lines|recordsep|\n"
" recordsep_zero|tableattr|title|tuples_only|\n"
" unicode_border_linestyle|unicode_column_linestyle|\n"
- " unicode_header_linestyle)\n");
+ " unicode_header_linestyle|xheader_width)\n");
HELPN(" \\t [on|off] show only rows (currently %s)\n",
ON(pset.popt.topt.tuples_only));
HELP0(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n");
@@ -494,6 +494,9 @@ helpVariables(unsigned short int pager)
" unicode_column_linestyle\n"
" unicode_header_linestyle\n"
" set the style of Unicode line drawing [single, double]\n");
+ HELP0(" xheader_width\n"
+ " set the maximum width of the header for expanded output\n"
+ " [full, column, page, integer value]\n");
HELP0("\nEnvironment variables:\n");
HELP0("Usage:\n");