how to set CACHEDEBUG ?

Started by sunpengalmost 16 years ago2 messagesgeneral
Jump to latest
#1sunpeng
bluevaley@gmail.com

I noticed there is a piece of code:
#ifdef CACHEDEBUG
#define InitCatCache_DEBUG2 \
do { \
elog(.......
} while(0)
#else
#define InitCatCache_DEBUG2
#endif

Now I'd like to set CACHEDEBUG, how to set up it ? where ?
thanks

peng

#2Bruce Momjian
bruce@momjian.us
In reply to: sunpeng (#1)
Re: how to set CACHEDEBUG ?

sunpeng wrote:

I noticed there is a piece of code:
#ifdef CACHEDEBUG
#define InitCatCache_DEBUG2 \
do { \
elog(.......
} while(0)
#else
#define InitCatCache_DEBUG2
#endif

Now I'd like to set CACHEDEBUG, how to set up it ? where ?
thanks

You compile with that flag, like:

cc -DCACHEDEBUG

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com