]> granicus.if.org Git - postgresql/commit
Clean up assorted issues in ALTER SYSTEM coding.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Jan 2015 01:19:04 +0000 (20:19 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Jan 2015 01:19:04 +0000 (20:19 -0500)
commitbf007a27acd7b2fbaa4c8db293f156907cb01d27
treebb47b22cc286f52b9bd556c185b34040c0b0de49
parentfd496129d160950ed681c1150ea8f627b292c511
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.
src/backend/utils/misc/guc-file.l
src/backend/utils/misc/guc.c