Commit 054219c9 authored by Bruce Momjian's avatar Bruce Momjian

Fix pg_upgrade for EXEC_BACKEND builds (e.g. Windows) by properly

passing the -b/binary-upgrade flag.

Backpatch to 9.1.X.
parent cb37c291
...@@ -433,6 +433,7 @@ typedef struct ...@@ -433,6 +433,7 @@ typedef struct
TimestampTz PgStartTime; TimestampTz PgStartTime;
TimestampTz PgReloadTime; TimestampTz PgReloadTime;
bool redirection_done; bool redirection_done;
bool IsBinaryUpgrade;
#ifdef WIN32 #ifdef WIN32
HANDLE PostmasterHandle; HANDLE PostmasterHandle;
HANDLE initial_signal_pipe; HANDLE initial_signal_pipe;
...@@ -4653,6 +4654,7 @@ save_backend_variables(BackendParameters *param, Port *port, ...@@ -4653,6 +4654,7 @@ save_backend_variables(BackendParameters *param, Port *port,
param->PgReloadTime = PgReloadTime; param->PgReloadTime = PgReloadTime;
param->redirection_done = redirection_done; param->redirection_done = redirection_done;
param->IsBinaryUpgrade = IsBinaryUpgrade;
#ifdef WIN32 #ifdef WIN32
param->PostmasterHandle = PostmasterHandle; param->PostmasterHandle = PostmasterHandle;
...@@ -4874,6 +4876,7 @@ restore_backend_variables(BackendParameters *param, Port *port) ...@@ -4874,6 +4876,7 @@ restore_backend_variables(BackendParameters *param, Port *port)
PgReloadTime = param->PgReloadTime; PgReloadTime = param->PgReloadTime;
redirection_done = param->redirection_done; redirection_done = param->redirection_done;
IsBinaryUpgrade = param->IsBinaryUpgrade;
#ifdef WIN32 #ifdef WIN32
PostmasterHandle = param->PostmasterHandle; PostmasterHandle = param->PostmasterHandle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment