From: Pavel Luzanov <p.luzanov@postgrespro.ru>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: psql: Fix \pset by adding missed xheader_width option to the help
Date: Thu, 21 Nov 2024 22:50:41 +0300
Message-ID: <1e3e06d6-0807-4e62-a9f6-c11481e6eb10@postgrespro.ru> (raw)
I found that the help for \pset command missed xheader_width option.
Please, consider this small correction.
--
Pavel Luzanov
Postgres Professional:https://postgrespro.comAttachments:v1-0001-psql-Fix-help-for-pset-by-adding-missed-xheader_w.patch (text/x-patch, 1.8K) download
From a5f59e77f3caf5b6bbbfc441393da68999e9e9fc Mon Sep 17 00:00:00 2001
From: Pavel Luzanov <p.luzanov@postgrespro.ru>
Date: Thu, 21 Nov 2024 22:32:44 +0300
Subject: [PATCH v1] psql: Fix help for \pset by adding missed xheader_width
option
psql --help=commands, psql --help=variables and corresponding
\? and \? variables inside psql missed xheader_width option
for the pset command.
---
src/bin/psql/help.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.cindex 02fe5d151e..e657dc8448 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,7 +494,10 @@ helpVariables(unsigned short int pager)
HELP0(" unicode_border_linestyle\n"
" unicode_column_linestyle\n"
" unicode_header_linestyle\n"
- " set the style of Unicode line drawing [single, double]\n");+ " set the style of Unicode line drawing [single, double]\n"+ " xheader_width\n"+ " set the maximum width of the header for expanded output to one of\n"+ " full (the default value), column, page, or an integer value\n");
HELP0("\nEnvironment variables:\n");
HELP0("Usage:\n");
--
2.34.1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: p.luzanov@postgrespro.ru
Subject: Re: psql: Fix \pset by adding missed xheader_width option to the help
In-Reply-To: <1e3e06d6-0807-4e62-a9f6-c11481e6eb10@postgrespro.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox