]> granicus.if.org Git - postgresql/commitdiff
pg_upgrade: Fix for changed pg_ctl default stop mode
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 13 Jan 2017 17:00:00 +0000 (12:00 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 13 Jan 2017 21:19:48 +0000 (16:19 -0500)
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.

src/bin/pg_upgrade/server.c

index 830335f50195f56fef97d667cb914cb2f5b7c7df..dd46e9f881f835802884e89a23db4c1e0cd6f736 100644 (file)
@@ -320,7 +320,7 @@ stop_postmaster(bool fast)
                          "\"%s/pg_ctl\" -w -D \"%s\" -o \"%s\" %s stop",
                          cluster->bindir, cluster->pgconfig,
                          cluster->pgopts ? cluster->pgopts : "",
-                         fast ? "-m fast" : "");
+                         fast ? "-m fast" : "-m smart");
 
        os_info.running_cluster = NULL;
 }