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

Commit109940c

Browse files
author
Neil Conway
committed
Editorialization for the text emitted by the "help" psql command.
Basically just reuse the same text that psql emitted as part ofits startup banner in prior versions, and make some whitespacemore consistent with the conventions in other psql command output.
1 parent99b8ebe commit109940c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/bin/psql/mainloop.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.91 2008/05/16 17:17:00 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.92 2008/06/10 20:58:19 neilc Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"mainloop.h"
@@ -177,12 +177,12 @@ MainLoop(FILE *source)
177177
(line[4]=='\0'||line[4]==';'||isspace((unsignedchar)line[4])))
178178
{
179179
free(line);
180-
puts(_("\nYou are using psql, the command-line interface to PostgreSQL."));
181-
puts(_("\t\\? forpsql help"));
182-
puts(_("\t\\h or \\helpfor SQLhelp\n"));
183-
puts(_("\t\\g or \";\" to execute a query"));
184-
puts(_("\t\\qtoquit psql\n"));
185-
puts(_("\t\\copyright toview the copyright\n"));
180+
puts(_("You are using psql, the command-line interface to PostgreSQL."));
181+
printf(_("Type: \\copyright fordistribution terms\n"
182+
" \\h forhelpwith SQLcommands\n"
183+
" \\? for help with psql commands\n"
184+
" \\g or terminate with semicolontoexecute query\n"
185+
" \\q toquit\n"));
186186

187187
fflush(stdout);
188188
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp