diff options
author | Noah Misch <noah@leadboat.com> | 2017-03-12 19:35:31 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2017-03-12 19:36:15 -0400 |
commit | e03c6d93bfabc6606a8778b253ae31f2c3ee849d (patch) | |
tree | e87e50652d342e4142bb60bb602f413c1407dacb /src/backend/storage/buffer/bufmgr.c | |
parent | f6cfc14e5ad3b8e5309615f8f7d15f55ba238f97 (diff) |
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).
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
0 files changed, 0 insertions, 0 deletions