shutdown_test.patch

application/octet-stream

Filename: shutdown_test.patch
Type: application/octet-stream
Part: 0
Message: Re: pending patch: Re: HS/SR and smart shutdown

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: context
File+
src/backend/postmaster/postmaster.c 6 0
*** a/src/backend/postmaster/postmaster.c
--- b/src/backend/postmaster/postmaster.c
***************
*** 2173,2178 **** pmdie(SIGNAL_ARGS)
--- 2173,2184 ----
  				/* and the walwriter too */
  				if (WalWriterPID != 0)
  					signal_child(WalWriterPID, SIGTERM);
+ 				/* and the startup process too */
+ 				if (StartupPID != 0)
+ 					signal_child(StartupPID, SIGTERM);
+ 				/* and the walreceiver too */
+ 				if (WalReceiverPID != 0)
+ 					signal_child(WalReceiverPID, SIGTERM);
  				pmState = PM_WAIT_BACKUP;
  			}