Avoid crash in "postgres -C guc" for a GUC with a null string value.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jun 2016 16:17:03 +0000 (12:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jun 2016 16:17:20 +0000 (12:17 -0400)
commit29987b2e1f8cfb9921ffd33c0d0e1a5f53a090b4
tree79c88b1d3059cb6a44f5db6bd987ccd5c6954236
parent832c3f9328949b31f9548a60c85a73f79fbe2d3f
Avoid crash in "postgres -C guc" for a GUC with a null string value.

Emit "(null)" instead, which was the behavior all along on platforms
that don't crash, eg OS X.  Per report from Jehan-Guillaume de Rorthais.
Back-patch to 9.2 where -C option was introduced.

Michael Paquier

Report: <20160615204036.2d35d86a@firost>
src/backend/postmaster/postmaster.c