Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3f9cf6b

Browse files
committed
When a smart pg_ctl shutdown fails, mention -m fast as a tip.
1 parent 303b7fc commit 3f9cf6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bin/pg_ctl/pg_ctl.c

+6
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)