• Noah Misch's avatar
    Fix pg_file_write() error handling. · 944a026b
    Noah Misch authored
    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).
    944a026b
adminpack.c 8.26 KB