mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
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/43f0439c-df3e-a045-ac99-af33523cc2d4@dalibo.com
This commit is contained in:
parent
4ecacc3c8c
commit
1fbe94084f
@ -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"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user