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

Commit3f9cf6b

Browse files
committed
When a smart pg_ctl shutdown fails, mention -m fast as a tip.
1 parent303b7fc commit3f9cf6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/bin/pg_ctl/pg_ctl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,9 @@ do_stop(void)
865865
print_msg(_(" failed\n"));
866866

867867
write_stderr(_("%s: server does not shut down\n"),progname);
868+
if (shutdown_mode==SMART_MODE)
869+
write_stderr(_("TIP: the \"-m fast\" option immediately disconnects sessions rather than\n"
870+
"waiting for session-initiated disconnection.\n"));
868871
exit(1);
869872
}
870873
print_msg(_(" done\n"));
@@ -952,6 +955,9 @@ do_restart(void)
952955
print_msg(_(" failed\n"));
953956

954957
write_stderr(_("%s: server does not shut down\n"),progname);
958+
if (shutdown_mode==SMART_MODE)
959+
write_stderr(_("TIP: the \"-m fast\" option immediately disconnects sessions rather than\n"
960+
"waiting for session-initiated disconnection.\n"));
955961
exit(1);
956962
}
957963

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp