aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/interrupt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/postmaster/interrupt.c')
-rw-r--r--src/backend/postmaster/interrupt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/postmaster/interrupt.c b/src/backend/postmaster/interrupt.c
index b3db4f2a4c1..3f412dad2e6 100644
--- a/src/backend/postmaster/interrupt.c
+++ b/src/backend/postmaster/interrupt.c
@@ -22,6 +22,7 @@
#include "storage/latch.h"
#include "storage/procsignal.h"
#include "utils/guc.h"
+#include "utils/memutils.h"
volatile sig_atomic_t ConfigReloadPending = false;
volatile sig_atomic_t ShutdownRequestPending = false;
@@ -43,6 +44,10 @@ HandleMainLoopInterrupts(void)
if (ShutdownRequestPending)
proc_exit(0);
+
+ /* Perform logging of memory contexts of this process */
+ if (LogMemoryContextPending)
+ ProcessLogMemoryContextInterrupt();
}
/*