pgsql: Avoid crash in "postgres -C guc" for a GUC with a null string va - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid crash in "postgres -C guc" for a GUC with a null string va
Date
Msg-id E1bDZzL-0006oA-RG@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e542bfe61d3a9f96c4ffb8d2046fe31eb86fcd07

Modified Files
--------------
src/backend/postmaster/postmaster.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid crash in "postgres -C guc" for a GUC with a null string va