postgresql.conf syntax

Started by Bruce Momjianover 24 years ago2 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Someone on IRC was confused by the contents of postgresql.conf:

#ifdef USE_ASSERT_CHECKING
#debug_assertions = true
#endif

I have to say I was confused myself. The #ifdef and #end are merely
comments, while appears like that syntax is supported by PostgreSQL. I
think we should put just plain comments at the top of each section.
Objections?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#2Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#1)
Re: postgresql.conf syntax

Bruce Momjian wrote:

Someone on IRC was confused by the contents of postgresql.conf:

#ifdef USE_ASSERT_CHECKING
#debug_assertions = true
#endif

I have to say I was confused myself. The #ifdef and #end are merely
comments, while appears like that syntax is supported by PostgreSQL. I
think we should put just plain comments at the top of each section.
Objections?

OK, I have replaced #ifdef with # requires. Patch attached and applied.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Attachments:

/bjm/difftext/plainDownload+10-14