public inbox for [email protected]
help / color / mirror / Atom feedFrom: Alvaro Herrera <[email protected]>
Subject: [PATCH] Don't freeze on checkpoints
Date: Mon, 27 Apr 2020 19:35:15 -0400
---
src/backend/postmaster/checkpointer.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c
index e354a78725..5cf5e9fe08 100644
--- a/src/backend/postmaster/checkpointer.c
+++ b/src/backend/postmaster/checkpointer.c
@@ -494,6 +494,13 @@ CheckpointerMain(void)
*/
pgstat_send_bgwriter();
+ /*
+ * Don't sleep if our latch was set for reasons other than a
+ * checkpoint request.
+ */
+ if (!do_checkpoint)
+ continue;
+
/*
* Sleep until we are signaled or it's time for another checkpoint or
* xlog file switch.
--
2.20.1
--EVF5PPMfhYS0aIcm--
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH] Don't freeze on checkpoints
In-Reply-To: <no-message-id-1881571@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox