77 * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
10- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.433 2010/08/3014:22:05 sriggs Exp $
10+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.434 2010/08/3015:37:41 sriggs Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -3272,9 +3272,6 @@ RemoveOldXlogFiles(uint32 log, uint32 seg, XLogRecPtr endptr)
32723272#endif
32733273struct stat statbuf ;
32743274
3275- elog (DEBUG2 ,"removing WAL segments older than log file %u, segment %u" ,
3276- log ,seg );
3277-
32783275/*
32793276 * Initialize info about where to try to recycle to. We allow recycling
32803277 * segments up to XLOGfileslop segments beyond the current XLOG location.
@@ -3291,6 +3288,9 @@ RemoveOldXlogFiles(uint32 log, uint32 seg, XLogRecPtr endptr)
32913288
32923289XLogFileName (lastoff ,ThisTimeLineID ,log ,seg );
32933290
3291+ elog (DEBUG2 ,"attempting to remove WAL segments older than log file %s" ,
3292+ lastoff );
3293+
32943294while ((xlde = ReadDir (xldir ,XLOGDIR ))!= NULL )
32953295{
32963296/*