Content-Length: 258559 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f7acc0397c60ed13137d7392e4210eb0f9d5877e

3B pg_upgrade: Fix for changed pg_ctl default stop mode · postgrespro/postgres_cluster@f7acc03 · GitHub
Skip to content

Commit f7acc03

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 2d443ae commit f7acc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_upgrade/server.c

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/f7acc0397c60ed13137d7392e4210eb0f9d5877e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy