pgsql: Clean up assorted issues in ALTER SYSTEM coding.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clean up assorted issues in ALTER SYSTEM coding.
Date: 2015-01-26 01:19:14
Message-ID: E1YFYKg-0008MY-Nq@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/138a5c4a909dc96c0f3a95123639ee7e014c7f38

Modified Files
--------------
src/backend/utils/misc/guc-file.l | 138 +++------
src/backend/utils/misc/guc.c | 618 ++++++++++++++++++-------------------
2 files changed, 349 insertions(+), 407 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-01-26 03:50:09 pgsql: Further cleanup of ReorderBufferCommit().
Previous Message Tom Lane 2015-01-24 21:16:31 pgsql: Clean up some mess in row-security patches.