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:06 -0400 |
commit | 4b2669ada6cb03c08eba21013321c8b2b412eaa1 (patch) | |
tree | 944af4ffefdf06e3e1b300d53cd0ad136871a433 /src/backend/port/dynloader/linux.c | |
parent | 166dfb3a903eee25637b846a87a4a63c67d5e796 (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/port/dynloader/linux.c')
0 files changed, 0 insertions, 0 deletions