From: Tom Lane Date: Tue, 28 Aug 2007 23:17:47 +0000 (+0000) Subject: Add a debug logging message when a resource manager rejects an attempted X-Git-Tag: REL8_3_BETA1~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a52e4408b93fde99607de80c6484919414620c77;p=postgresql Add a debug logging message when a resource manager rejects an attempted restart point. Per suggestion from Simon Riggs. --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 353fb02c94..1db33fb26d 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.278 2007/08/13 19:08:26 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.279 2007/08/28 23:17:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -5923,7 +5923,13 @@ RecoveryRestartPoint(const CheckPoint *checkPoint) { if (RmgrTable[rmid].rm_safe_restartpoint != NULL) if (!(RmgrTable[rmid].rm_safe_restartpoint())) + { + elog(DEBUG2, "RM %d not safe to record restart point at %X/%X", + rmid, + checkPoint->redo.xlogid, + checkPoint->redo.xrecoff); return; + } } /*