Обсуждение: [COMMITTERS] pgsql: Fix pg_file_write() error handling.

Поиск
Список
Период
Сортировка

[COMMITTERS] pgsql: Fix pg_file_write() error handling.

От
Noah Misch
Дата:
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_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/08c6d42c8c63c62aeaaf71cd6375baef798c5924

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