Обсуждение: how to set CACHEDEBUG ?

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

how to set CACHEDEBUG ?

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