aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/walwriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/postmaster/walwriter.c')
-rw-r--r--src/backend/postmaster/walwriter.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/postmaster/walwriter.c b/src/backend/postmaster/walwriter.c
index 626fae8454c..6a1e16edc23 100644
--- a/src/backend/postmaster/walwriter.c
+++ b/src/backend/postmaster/walwriter.c
@@ -249,6 +249,13 @@ WalWriterMain(void)
HandleWalWriterInterrupts();
/*
+ * Notify the archiver of any WAL segments that are ready. We do this
+ * here to handle a race condition where WAL is flushed to disk prior
+ * to registering the segment boundary.
+ */
+ NotifySegmentsReadyForArchive(GetFlushRecPtr());
+
+ /*
* Do what we're here for; then, if XLogBackgroundFlush() found useful
* work to do, reset hibernation counter.
*/