Skip to content

Commit e6d6f2e

Browse files
committed
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 a45388d. Author: Pavel Luzanov Discussion: https://postgr.es/m/1e3e06d6-0807-4e62-a9f6-c11481e6eb10@postgrespro.ru Backpatch-through: 16
1 parent 8a9a515 commit e6d6f2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/psql/help.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ slashUsage(unsigned short int pager)
294294
" numericlocale|pager|pager_min_lines|recordsep|\n"
295295
" recordsep_zero|tableattr|title|tuples_only|\n"
296296
" unicode_border_linestyle|unicode_column_linestyle|\n"
297-
" unicode_header_linestyle)\n");
297+
" unicode_header_linestyle|xheader_width)\n");
298298
HELPN(" \\t [on|off] show only rows (currently %s)\n",
299299
ON(pset.popt.topt.tuples_only));
300300
HELP0(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n");
@@ -494,6 +494,9 @@ helpVariables(unsigned short int pager)
494494
" unicode_column_linestyle\n"
495495
" unicode_header_linestyle\n"
496496
" set the style of Unicode line drawing [single, double]\n");
497+
HELP0(" xheader_width\n"
498+
" set the maximum width of the header for expanded output\n"
499+
" [full, column, page, integer value]\n");
497500

498501
HELP0("\nEnvironment variables:\n");
499502
HELP0("Usage:\n");

0 commit comments

Comments
 (0)