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

Поиск
Список
Период
Сортировка
От Noah Misch
Тема [COMMITTERS] pgsql: Fix pg_file_write() error handling.
Дата
Msg-id E1cnD7M-00034T-Us@gemulon.postgresql.org
обсуждение исходный текст
Список 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_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d0e5ac736df074d8334fa5c1e471cbdadfd631a8

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: [COMMITTERS] pgsql: dblink: Replace some macros by static functions
Следующее
От: Magnus Hagander
Дата:
Сообщение: [COMMITTERS] pgsql: Fix typo in comment