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:35:31 -0400 |
commit | 944a026b4ec252667f275768ba4dcd53ae3bb07e (patch) | |
tree | 36c5c6d3c8710cd7f288666b17d41bd68e5600c9 /src/tutorial | |
parent | 2fd26b23b662dcb0cf649e983a58581cb911fc4b (diff) | |
download | postgresql-944a026b4ec252667f275768ba4dcd53ae3bb07e.tar.gz postgresql-944a026b4ec252667f275768ba4dcd53ae3bb07e.zip |
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/tutorial')
0 files changed, 0 insertions, 0 deletions