[COMMITTERS] pgsql: Fix pg_file_write() error handling. - Mailing list pgsql-committers

From Noah Misch
Subject [COMMITTERS] pgsql: Fix pg_file_write() error handling.
Date
Msg-id E1cnD7M-00034W-Uy@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix pg_file_write() error handling.

Detect fclose() failures; given "ln -s /dev/full $PGDATA/devfull",
"pg_file_write('devfull', 'x', true)" now fails as it should.  Don't
leak a stream when fwrite() fails.  Remove a born-ineffective test that
aimed to skip zero-length writes.  Back-patch to 9.2 (all supported
versions).

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4b2669ada6cb03c08eba21013321c8b2b412eaa1

Modified Files
--------------
contrib/adminpack/adminpack.c | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: Re: [COMMITTERS] pgsql: dblink: Replace some macros by static functions
Next
From: Magnus Hagander
Date:
Subject: [COMMITTERS] pgsql: Fix typo in comment