diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index d1b381101b6..8e9754c497a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -2255,9 +2255,9 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, bool opportunistic) LWLockRelease(WALBufMappingLock); #ifdef WAL_DEBUG - if (npages > 0) + if (XLOG_DEBUG && npages > 0) { - elog(DEBUG1, "initialized %d pages, upto %X/%X", + elog(DEBUG1, "initialized %d pages, up to %X/%X", npages, (uint32) (NewPageEndPtr >> 32), (uint32) NewPageEndPtr); } #endif