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

Commit4c6c6b5

Browse files
committed
Small corrections to message output targets in pg_ctl
- The message "server stopped" should be affected by the -s option, just like "server started" already was.- The message "could not start server" should consistently go to stderr.
1 parentad458cf commit4c6c6b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.118 2010/01/02 16:57:58 momjian Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.119 2010/02/19 14:12:19 petere Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -748,7 +748,9 @@ do_start(void)
748748

749749
if (test_postmaster_connection(false)== false)
750750
{
751-
printf(_("could not start server\n"));
751+
write_stderr(_("%s: could not start server\n"
752+
"Examine the log output.\n"),
753+
progname);
752754
exit(1);
753755
}
754756
else
@@ -828,7 +830,7 @@ do_stop(void)
828830
}
829831
print_msg(_(" done\n"));
830832

831-
printf(_("server stopped\n"));
833+
print_msg(_("server stopped\n"));
832834
}
833835
}
834836

@@ -907,7 +909,7 @@ do_restart(void)
907909
}
908910

909911
print_msg(_(" done\n"));
910-
printf(_("server stopped\n"));
912+
print_msg(_("server stopped\n"));
911913
}
912914
else
913915
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp