8000 pg_upgrade: Fix for changed pg_ctl default stop mode · hackingwu/postgres@7fbd3dd · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fbd3dd

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 26e7cdb commit 7fbd3dd

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
@@ -319,7 +319,7 @@ stop_postmaster(bool fast)
319319
"\"%s/pg_ctl\" -w -D \"%s\" -o \"%s\" %s stop",
320320
cluster->bindir, cluster->pgconfig,
321321
cluster->pgopts ? cluster->pgopts : "",
322-
fast ? "-m fast" : "");
322+
fast ? "-m fast" : "-m smart");
323323

324324
os_info.running_cluster = NULL;
325325
}

0 commit comments

Comments
 (0)
0