how to set CACHEDEBUG ?

Поиск
Список
Период
Сортировка
Искать

how to set CACHEDEBUG ?

От:
sunpeng <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

Re: how to set CACHEDEBUG ?

От:
Bruce Momjian <bruce@momjian.us>
Дата:
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          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com
FAQ