diff options
author | Bruce Momjian | 2011-09-29 21:20:53 +0000 |
---|---|---|
committer | Bruce Momjian | 2011-09-29 21:21:34 +0000 |
commit | 054219c907a9fe668b2dac4134563b4f38e2b233 (patch) | |
tree | 4a1bd184cd90204d069afa27749818165ead0170 | |
parent | cb37c291060dd13b1a8ff61fceee09efcfbc34e1 (diff) |
Fix pg_upgrade for EXEC_BACKEND builds (e.g. Windows) by properly
passing the -b/binary-upgrade flag.
Backpatch to 9.1.X.
-rw-r--r-- | src/backend/postmaster/postmaster.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 94b57fa7bb..0a84d97f51 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -433,6 +433,7 @@ typedef struct TimestampTz PgStartTime; TimestampTz PgReloadTime; bool redirection_done; + bool IsBinaryUpgrade; #ifdef WIN32 HANDLE PostmasterHandle; HANDLE initial_signal_pipe; @@ -4653,6 +4654,7 @@ save_backend_variables(BackendParameters *param, Port *port, param->PgReloadTime = PgReloadTime; param->redirection_done = redirection_done; + param->IsBinaryUpgrade = IsBinaryUpgrade; #ifdef WIN32 param->PostmasterHandle = PostmasterHandle; @@ -4874,6 +4876,7 @@ restore_backend_variables(BackendParameters *param, Port *port) PgReloadTime = param->PgReloadTime; redirection_done = param->redirection_done; + IsBinaryUpgrade = param->IsBinaryUpgrade; #ifdef WIN32 PostmasterHandle = param->PostmasterHandle; |