From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Clean up assorted issues in ALTER SYSTEM coding.
Date: Mon, 26 Jan 2015 01:19:14 +0000
Message-ID: <E1YFYKg-0008MX-Nl@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Clean up assorted issues in ALTER SYSTEM coding.
Fix unsafe use of a non-volatile variable in PG_TRY/PG_CATCH in
AlterSystemSetConfigFile(). While at it, clean up a bundle of other
infelicities and outright bugs, including corner-case-incorrect linked list
manipulation, a poorly designed and worse documented parse-and-validate
function (which even included some randomly chosen hard-wired substitutes
for the specified elevel in one code path ... wtf?), direct use of open()
instead of fd.c's facilities, inadequate checking of write()'s return
value, and generally poorly written commentary.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/bf007a27acd7b2fbaa4c8db293f156907cb01d27
Modified Files
--------------
src/backend/utils/misc/guc-file.l | 138 +++-----
src/backend/utils/misc/guc.c | 625 ++++++++++++++++++-------------------
2 files changed, 352 insertions(+), 411 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Clean up assorted issues in ALTER SYSTEM coding.
In-Reply-To: <E1YFYKg-0008MX-Nl@gemulon.postgresql.org>
References: <E1YFYKg-0008MX-Nl@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox