After fast promotion use CHECKPOINT_FORCE
authorSimon Riggs <simon@2ndQuadrant.com>
Tue, 21 May 2013 20:27:12 +0000 (21:27 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Tue, 21 May 2013 20:27:12 +0000 (21:27 +0100)
Not necessary for correctness, just to make
log_checkpoints output look less singular.

Requested by Fujii Masao

src/backend/access/transam/xlog.c

index 3950a02667989946e08f50d4c733fa5e69c709f2..76b52fb1dcb0d0f35894ac7b5495c8a674b3d1c2 100644 (file)
@@ -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);
 }
 
 /*