diff options
| author | Neil Conway | 2004-01-06 17:26:23 +0000 |
|---|---|---|
| committer | Neil Conway | 2004-01-06 17:26:23 +0000 |
| commit | bc028beb166b704d3c3028961dd6905772bf3a2d (patch) | |
| tree | 1820130965e4fa7e38bca860ec776bd0e1bab743 /src/include | |
| parent | b0c4a50bbbbd62c444cb3806a97c1e51e2249cfd (diff) | |
Make the 'wal_debug' GUC variable a boolean (rather than an integer), and
hide it behind #ifdef WAL_DEBUG blocks.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/xlog.h | 6 | ||||
| -rw-r--r-- | src/include/pg_config_manual.h | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 751e8803202..e4f5b7182c2 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.46 2003/12/12 18:45:10 petere Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.47 2004/01/06 17:26:23 neilc Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -189,10 +189,12 @@ extern XLogRecPtr ProcLastRecEnd; extern int CheckPointSegments; extern int CheckPointWarning; extern int XLOGbuffers; -extern int XLOG_DEBUG; extern char *XLOG_sync_method; extern const char XLOG_sync_method_default[]; +#ifdef WAL_DEBUG +extern bool XLOG_DEBUG; +#endif extern XLogRecPtr XLogInsert(RmgrId rmid, uint8 info, XLogRecData *rdata); extern void XLogFlush(XLogRecPtr RecPtr); diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index be80abfdc4a..3722798ccee 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -6,7 +6,7 @@ * for developers. If you edit any of these, be sure to do a *full* * rebuild (and an initdb if noted). * - * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.8 2003/11/29 22:40:53 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.9 2004/01/06 17:26:23 neilc Exp $ *------------------------------------------------------------------------ */ @@ -225,6 +225,12 @@ /* #define LOCK_DEBUG */ /* + * Enable debugging print statements for WAL-related operations; see + * also the wal_debug GUC var. + */ +/* #define WAL_DEBUG */ + +/* * Other debug #defines (documentation, anyone?) */ /* #define IPORTAL_DEBUG */ |
