Skip to content

Commit 7f5b043

Browse files
committed
pg_upgrade: Fix for changed pg_ctl default stop mode
In 9.5, the default pg_ctl stop mode was changed from "smart" to "fast". pg_upgrade still thought the default mode was "smart" and only specified the mode when "fast" was asked for. This results in using "fast" all the time. It's not clear what the effect in practice is, but fix it nonetheless to restore the previous behavior.
1 parent 0563a3a commit 7f5b043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_upgrade/server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ stop_postmaster(bool fast)
320320
"\"%s/pg_ctl\" -w -D \"%s\" -o \"%s\" %s stop",
321321
cluster->bindir, cluster->pgconfig,
322322
cluster->pgopts ? cluster->pgopts : "",
323-
fast ? "-m fast" : "");
323+
fast ? "-m fast" : "-m smart");
324324

325325
os_info.running_cluster = NULL;
326326
}

0 commit comments

Comments
 (0)