7
7
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
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 $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -455,8 +455,10 @@ static XLogRecord *ReadCheckpointRecord(XLogRecPtr RecPtr,
455
455
static void WriteControlFile (void );
456
456
static void ReadControlFile (void );
457
457
static char * str_time (time_t tnow );
458
- static void xlog_outrec (char * buf ,XLogRecord * record );
459
458
static void issue_xlog_fsync (void );
459
+ #ifdef WAL_DEBUG
460
+ static void xlog_outrec (char * buf ,XLogRecord * record );
461
+ #endif
460
462
461
463
462
464
/*
@@ -3489,6 +3491,7 @@ xlog_desc(char *buf, uint8 xl_info, char *rec)
3489
3491
strcat (buf ,"UNKNOWN" );
3490
3492
}
3491
3493
3494
+ #ifdef WAL_DEBUG
3492
3495
static void
3493
3496
xlog_outrec (char * buf ,XLogRecord * record )
3494
3497
{
@@ -3513,6 +3516,7 @@ xlog_outrec(char *buf, XLogRecord *record)
3513
3516
sprintf (buf + strlen (buf ),": %s" ,
3514
3517
RmgrTable [record -> xl_rmid ].rm_name );
3515
3518
}
3519
+ #endif /* WAL_DEBUG */
3516
3520
3517
3521
3518
3522
/*