mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Fix pg_upgrade for EXEC_BACKEND builds (e.g. Windows) by properly
passing the -b/binary-upgrade flag. Backpatch to 9.1.X.
This commit is contained in:
parent
0c2c2495ad
commit
96a263f885
1 changed files with 3 additions and 0 deletions
|
|
@ -437,6 +437,7 @@ typedef struct
|
|||
TimestampTz PgStartTime;
|
||||
TimestampTz PgReloadTime;
|
||||
bool redirection_done;
|
||||
bool IsBinaryUpgrade;
|
||||
#ifdef WIN32
|
||||
HANDLE PostmasterHandle;
|
||||
HANDLE initial_signal_pipe;
|
||||
|
|
@ -4742,6 +4743,7 @@ save_backend_variables(BackendParameters *param, Port *port,
|
|||
param->PgReloadTime = PgReloadTime;
|
||||
|
||||
param->redirection_done = redirection_done;
|
||||
param->IsBinaryUpgrade = IsBinaryUpgrade;
|
||||
|
||||
#ifdef WIN32
|
||||
param->PostmasterHandle = PostmasterHandle;
|
||||
|
|
@ -4960,6 +4962,7 @@ restore_backend_variables(BackendParameters *param, Port *port)
|
|||
PgReloadTime = param->PgReloadTime;
|
||||
|
||||
redirection_done = param->redirection_done;
|
||||
IsBinaryUpgrade = param->IsBinaryUpgrade;
|
||||
|
||||
#ifdef WIN32
|
||||
PostmasterHandle = param->PostmasterHandle;
|
||||
|
|
|
|||
Loading…
Reference in a new issue