Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 96a263f

Browse files
committed
Fix pg_upgrade for EXEC_BACKEND builds (e.g. Windows) by properly
passing the -b/binary-upgrade flag. Backpatch to 9.1.X.
1 parent 0c2c249 commit 96a263f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ typedef struct
437437
TimestampTz PgStartTime;
438438
TimestampTz PgReloadTime;
439439
bool redirection_done;
440+
bool IsBinaryUpgrade;
440441
#ifdef WIN32
441442
HANDLE PostmasterHandle;
442443
HANDLE initial_signal_pipe;
@@ -4742,6 +4743,7 @@ save_backend_variables(BackendParameters *param, Port *port,
47424743
param->PgReloadTime = PgReloadTime;
47434744

47444745
param->redirection_done = redirection_done;
4746+
param->IsBinaryUpgrade = IsBinaryUpgrade;
47454747

47464748
#ifdef WIN32
47474749
param->PostmasterHandle = PostmasterHandle;
@@ -4960,6 +4962,7 @@ restore_backend_variables(BackendParameters *param, Port *port)
49604962
PgReloadTime = param->PgReloadTime;
49614963

49624964
redirection_done = param->redirection_done;
4965+
IsBinaryUpgrade = param->IsBinaryUpgrade;
49634966

49644967
#ifdef WIN32
49654968
PostmasterHandle = param->PostmasterHandle;

0 commit comments

Comments
 (0)