/rtmp/pg_upgrade

text/x-diff

Filename: /rtmp/pg_upgrade
Type: text/x-diff
Part: 0
Message: Re: fix for pg_upgrade

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/postmaster/postmaster.c 0 0
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
new file mode 100644
index 94b57fa..0a84d97
*** a/src/backend/postmaster/postmaster.c
--- b/src/backend/postmaster/postmaster.c
*************** typedef struct
*** 433,438 ****
--- 433,439 ----
  	TimestampTz PgStartTime;
  	TimestampTz PgReloadTime;
  	bool		redirection_done;
+ 	bool		IsBinaryUpgrade;
  #ifdef WIN32
  	HANDLE		PostmasterHandle;
  	HANDLE		initial_signal_pipe;
*************** save_backend_variables(BackendParameters
*** 4653,4658 ****
--- 4654,4660 ----
  	param->PgReloadTime = PgReloadTime;
  
  	param->redirection_done = redirection_done;
+ 	param->IsBinaryUpgrade = IsBinaryUpgrade;
  
  #ifdef WIN32
  	param->PostmasterHandle = PostmasterHandle;
*************** restore_backend_variables(BackendParamet
*** 4874,4879 ****
--- 4876,4882 ----
  	PgReloadTime = param->PgReloadTime;
  
  	redirection_done = param->redirection_done;
+ 	IsBinaryUpgrade = param->IsBinaryUpgrade;
  
  #ifdef WIN32
  	PostmasterHandle = param->PostmasterHandle;