From 25211044687a629e632ef0a2bfad30acea337266 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 14 Dec 2023 18:32:29 +0100 Subject: [PATCH 4/6] fixup! Add a new WAL summarizer process. --- src/backend/backup/meson.build | 2 +- src/backend/postmaster/walsummarizer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/backup/meson.build b/src/backend/backup/meson.build index 0e2de91e9f..5d4ebe3ebe 100644 --- a/src/backend/backup/meson.build +++ b/src/backend/backup/meson.build @@ -13,5 +13,5 @@ backend_sources += files( 'basebackup_throttle.c', 'basebackup_zstd.c', 'walsummary.c', - 'walsummaryfuncs.c' + 'walsummaryfuncs.c', ) diff --git a/src/backend/postmaster/walsummarizer.c b/src/backend/postmaster/walsummarizer.c index 7c840c36b3..9fa155349e 100644 --- a/src/backend/postmaster/walsummarizer.c +++ b/src/backend/postmaster/walsummarizer.c @@ -290,7 +290,7 @@ WalSummarizerMain(void) FlushErrorState(); /* Flush any leaked data in the top-level context */ - MemoryContextResetAndDeleteChildren(context); + MemoryContextReset(context); /* Now we can allow interrupts again */ RESUME_INTERRUPTS(); @@ -342,7 +342,7 @@ WalSummarizerMain(void) XLogRecPtr end_of_summary_lsn; /* Flush any leaked data in the top-level context */ - MemoryContextResetAndDeleteChildren(context); + MemoryContextReset(context); /* Process any signals received recently. */ HandleWalSummarizerInterrupts(); -- 2.43.0