77 * Portions Copyright (c) 1996-2003, 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.130 2004/01/0617:26:23 neilc Exp $
10+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.131 2004/01/0622:22:37 tgl Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -455,8 +455,10 @@ static XLogRecord *ReadCheckpointRecord(XLogRecPtr RecPtr,
455455static void WriteControlFile (void );
456456static void ReadControlFile (void );
457457static char * str_time (time_t tnow );
458- static void xlog_outrec (char * buf ,XLogRecord * record );
459458static void issue_xlog_fsync (void );
459+ #ifdef WAL_DEBUG
460+ static void xlog_outrec (char * buf ,XLogRecord * record );
461+ #endif
460462
461463
462464/*
@@ -3489,6 +3491,7 @@ xlog_desc(char *buf, uint8 xl_info, char *rec)
34893491strcat (buf ,"UNKNOWN" );
34903492}
34913493
3494+ #ifdef WAL_DEBUG
34923495static void
34933496xlog_outrec (char * buf ,XLogRecord * record )
34943497{
@@ -3513,6 +3516,7 @@ xlog_outrec(char *buf, XLogRecord *record)
35133516sprintf (buf + strlen (buf ),": %s" ,
35143517RmgrTable [record -> xl_rmid ].rm_name );
35153518}
3519+ #endif /* WAL_DEBUG */
35163520
35173521
35183522/*