pgarch_check_sighup_v1.patch

application/octet-stream

Filename: pgarch_check_sighup_v1.patch
Type: application/octet-stream
Part: 0
Message: Re: Archiver not picking up changes to archive_command

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
Series: patch v1
File+
src/backend/postmaster/pgarch.c 7 0
*** a/src/backend/postmaster/pgarch.c
--- b/src/backend/postmaster/pgarch.c
***************
*** 430,435 **** pgarch_ArchiverCopyLoop(void)
--- 430,442 ----
  
  		for (;;)
  		{
+ 			/* Check for config update */
+ 			if (got_SIGHUP)
+ 			{
+ 				got_SIGHUP = false;
+ 				ProcessConfigFile(PGC_SIGHUP);
+ 			}
+ 
  			/*
  			 * Do not initiate any more archive commands after receiving
  			 * SIGTERM, nor after the postmaster has died unexpectedly. The