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

Commitc4a7e5d

Browse files
committed
psql \? rearrangement, suggested by Tom.
1 parent721dd19 commitc4a7e5d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎src/bin/psql/help.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.64 2002/12/1122:45:13 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.65 2002/12/1123:03:45 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
@@ -191,13 +191,16 @@ slashUsage(unsigned short int pager)
191191
fprintf(output,_(" \\g [FILE] send query buffer to server (and results to file or |pipe)\n"));
192192
fprintf(output,_(" \\r reset (clear) the query buffer\n"));
193193
fprintf(output,_(" \\e [FILE] edit the query buffer (or file) with external editor\n"));
194-
fprintf(output,_(" \\i FILE execute commands from file\n"));
195194
fprintf(output,_(" \\p show the contents of the query buffer\n"));
196195
fprintf(output,_(" \\w [FILE] write query buffer to file\n"));
197-
fprintf(output,_(" \\o FILE send all query results to file or |pipe\n"));
198196
fprintf(output,_(" \\s [FILE] display history or save it to file\n"));
199197
fprintf(output,_("\n"));
200198

199+
fprintf(output,_("I/O Redirection\n"));
200+
fprintf(output,_(" \\i FILE execute commands from file\n"));
201+
fprintf(output,_(" \\o FILE send all query results to file or |pipe\n"));
202+
fprintf(output,_("\n"));
203+
201204
fprintf(output,_("Informational\n"));
202205
fprintf(output,_(" \\d [NAME] describe table, index, sequence, or view\n"));
203206
fprintf(output,_(" \\d{t|i|s|v|S} [PATTERN] (add \"+\" for more detail)\n"
@@ -236,12 +239,10 @@ slashUsage(unsigned short int pager)
236239
ON(pset.popt.topt.tuples_only));
237240
fprintf(output,_(" \\echo [STRING] write string to standard output\n"));
238241
fprintf(output,_(" \\qecho [STRING] write string to query output stream (see \\o)\n"));
239-
fprintf(output,_("\n"));
240-
241-
fprintf(output,_("HTML Output\n"));
242242
fprintf(output,_(" \\H toggle HTML output mode (currently %s)\n"),
243243
ON(pset.popt.topt.format==PRINT_HTML));
244244
fprintf(output,_(" \\T [STRING] set HTML <table> tag attributes, or unset if none\n"));
245+
fprintf(output,_("\n"));
245246

246247
if (output!=stdout)
247248
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp