summaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorTom Lane2022-06-03 19:49:36 +0000
committerTom Lane2022-06-03 19:49:36 +0000
commit1fbe94084fd34200e61dd1db6225e8c8c65c000d (patch)
treeb05d0ed4ef955505d130237e16cc970a5a0ea1ee /src/bin/psql/help.c
parent4ecacc3c8cb4b27374bdb1ca83696c0c09ee7f79 (diff)
Improve psql \?'s description of large-object-related commands.
Provide a gloss of which command does what, as all other backslash commands have. Put the large-object command section into a more considered spot in the list. In passing, update the output-lines count in helpVariables() (oversight in 7844c9918, looks like). Thibaud Walkowiak, reviewed by Nathan Bossart and myself Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 49eb116f33b..81a4739cda6 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -163,7 +163,7 @@ slashUsage(unsigned short int pager)
* Use "psql --help=commands | wc" to count correctly. It's okay to count
* the USE_READLINE line even in builds without that.
*/
- output = PageOutput(138, pager ? &(pset.popt.topt) : NULL);
+ output = PageOutput(139, pager ? &(pset.popt.topt) : NULL);
fprintf(output, _("General\n"));
fprintf(output, _(" \\copyright show PostgreSQL usage and distribution terms\n"));
@@ -272,6 +272,14 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\z [PATTERN] same as \\dp\n"));
fprintf(output, "\n");
+ fprintf(output, _("Large Objects\n"));
+ fprintf(output, _(" \\lo_export LOBOID FILE write large object to file\n"));
+ fprintf(output, _(" \\lo_import FILE [COMMENT]\n"
+ " read large object from file\n"));
+ fprintf(output, _(" \\lo_list[+] list large objects\n"));
+ fprintf(output, _(" \\lo_unlink LOBOID delete a large object\n"));
+ fprintf(output, "\n");
+
fprintf(output, _("Formatting\n"));
fprintf(output, _(" \\a toggle between unaligned and aligned output mode\n"));
fprintf(output, _(" \\C [STRING] set table title, or unset if none\n"));
@@ -318,13 +326,6 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\prompt [TEXT] NAME prompt user to set internal variable\n"));
fprintf(output, _(" \\set [NAME [VALUE]] set internal variable, or list all if no parameters\n"));
fprintf(output, _(" \\unset NAME unset (delete) internal variable\n"));
- fprintf(output, "\n");
-
- fprintf(output, _("Large Objects\n"));
- fprintf(output, _(" \\lo_export LOBOID FILE\n"
- " \\lo_import FILE [COMMENT]\n"
- " \\lo_list[+]\n"
- " \\lo_unlink LOBOID large object operations\n"));
ClosePager(output);
}
@@ -346,7 +347,7 @@ helpVariables(unsigned short int pager)
* Windows builds currently print one fewer line than non-Windows builds.
* Using the larger number is fine.
*/
- output = PageOutput(161, pager ? &(pset.popt.topt) : NULL);
+ output = PageOutput(163, pager ? &(pset.popt.topt) : NULL);
fprintf(output, _("List of specially treated variables\n\n"));