Skip to content

Commit 054219c

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 cb37c29 commit 054219c

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
@@ -433,6 +433,7 @@ typedef struct
433433
TimestampTz PgStartTime;
434434
TimestampTz PgReloadTime;
435435
bool redirection_done;
436+
bool IsBinaryUpgrade;
436437
#ifdef WIN32
437438
HANDLE PostmasterHandle;
438439
HANDLE initial_signal_pipe;
@@ -4653,6 +4654,7 @@ save_backend_variables(BackendParameters *param, Port *port,
46534654
param->PgReloadTime = PgReloadTime;
46544655

46554656
param->redirection_done = redirection_done;
4657+
param->IsBinaryUpgrade = IsBinaryUpgrade;
46564658

46574659
#ifdef WIN32
46584660
param->PostmasterHandle = PostmasterHandle;
@@ -4874,6 +4876,7 @@ restore_backend_variables(BackendParameters *param, Port *port)
48744876
PgReloadTime = param->PgReloadTime;
48754877

48764878
redirection_done = param->redirection_done;
4879+
IsBinaryUpgrade = param->IsBinaryUpgrade;
48774880

48784881
#ifdef WIN32
48794882
PostmasterHandle = param->PostmasterHandle;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy