Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1fbe940

Browse files
committed
Improve psql \?'s description of large-object-related commands.
Provide a gloss of which command does what, as all other backslashcommands have. Put the large-object command section into a moreconsidered spot in the list.In passing, update the output-lines count in helpVariables()(oversight in7844c99, looks like).Thibaud Walkowiak, reviewed by Nathan Bossart and myselfDiscussion:https://postgr.es/m/43f0439c-df3e-a045-ac99-af33523cc2d4@dalibo.com
1 parent4ecacc3 commit1fbe940

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

‎src/bin/psql/help.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ slashUsage(unsigned short int pager)
163163
* Use "psql --help=commands | wc" to count correctly. It's okay to count
164164
* the USE_READLINE line even in builds without that.
165165
*/
166-
output=PageOutput(138,pager ?&(pset.popt.topt) :NULL);
166+
output=PageOutput(139,pager ?&(pset.popt.topt) :NULL);
167167

168168
fprintf(output,_("General\n"));
169169
fprintf(output,_(" \\copyright show PostgreSQL usage and distribution terms\n"));
@@ -272,6 +272,14 @@ slashUsage(unsigned short int pager)
272272
fprintf(output,_(" \\z [PATTERN] same as \\dp\n"));
273273
fprintf(output,"\n");
274274

275+
fprintf(output,_("Large Objects\n"));
276+
fprintf(output,_(" \\lo_export LOBOID FILE write large object to file\n"));
277+
fprintf(output,_(" \\lo_import FILE [COMMENT]\n"
278+
" read large object from file\n"));
279+
fprintf(output,_(" \\lo_list[+] list large objects\n"));
280+
fprintf(output,_(" \\lo_unlink LOBOID delete a large object\n"));
281+
fprintf(output,"\n");
282+
275283
fprintf(output,_("Formatting\n"));
276284
fprintf(output,_(" \\a toggle between unaligned and aligned output mode\n"));
277285
fprintf(output,_(" \\C [STRING] set table title, or unset if none\n"));
@@ -318,13 +326,6 @@ slashUsage(unsigned short int pager)
318326
fprintf(output,_(" \\prompt [TEXT] NAME prompt user to set internal variable\n"));
319327
fprintf(output,_(" \\set [NAME [VALUE]] set internal variable, or list all if no parameters\n"));
320328
fprintf(output,_(" \\unset NAME unset (delete) internal variable\n"));
321-
fprintf(output,"\n");
322-
323-
fprintf(output,_("Large Objects\n"));
324-
fprintf(output,_(" \\lo_export LOBOID FILE\n"
325-
" \\lo_import FILE [COMMENT]\n"
326-
" \\lo_list[+]\n"
327-
" \\lo_unlink LOBOID large object operations\n"));
328329

329330
ClosePager(output);
330331
}
@@ -346,7 +347,7 @@ helpVariables(unsigned short int pager)
346347
* Windows builds currently print one fewer line than non-Windows builds.
347348
* Using the larger number is fine.
348349
*/
349-
output=PageOutput(161,pager ?&(pset.popt.topt) :NULL);
350+
output=PageOutput(163,pager ?&(pset.popt.topt) :NULL);
350351

351352
fprintf(output,_("List of specially treated variables\n\n"));
352353

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp