From 22a27ef113d50cad73097c0be247f06d6527363c Mon Sep 17 00:00:00 2001
From: Simon Riggs <simon@2ndQuadrant.com>
Date: Tue, 21 May 2013 21:27:12 +0100
Subject: [PATCH] After fast promotion use CHECKPOINT_FORCE

Not necessary for correctness, just to make
log_checkpoints output look less singular.

Requested by Fujii Masao
---
 src/backend/access/transam/xlog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 3950a026679..76b52fb1dcb 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -6104,7 +6104,7 @@ StartupXLOG(void)
 	 * than is appropriate now that we're not in standby mode anymore.
 	 */
 	if (fast_promoted)
-		RequestCheckpoint(0);
+		RequestCheckpoint(CHECKPOINT_FORCE);
 }
 
 /*
-- 
GitLab