Make "postgres -C guc" print "" not "(null)" for null-valued GUCs.
authorTom Lane
Wed, 22 Jun 2016 15:55:18 +0000 (11:55 -0400)
committerTom Lane
Wed, 22 Jun 2016 15:55:32 +0000 (11:55 -0400)
commitdafdcbb6c116bc72a1915146af6c7d96868549b4
tree2c5e78c8ffee2524485a759a10dc221450050e7a
parent8df3c7ba74e6800c01a0d2fcd09adf23c298e790
Make "postgres -C guc" print "" not "(null)" for null-valued GUCs.

Commit 0b0baf262 et al made this case print "(null)" on the grounds that
that's what happened on platforms that didn't crash.  But neither behavior
was actually intentional.  What we should print is just an empty string,
for compatibility with the behavior of SHOW and other ways of examining
string GUCs.  Those code paths don't distinguish NULL from empty strings,
so we should not here either.  Per gripe from Alain Radix.

Like the previous patch, back-patch to 9.2 where -C option was introduced.

Discussion: 
src/backend/postmaster/postmaster.c