aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/misc.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2017-03-12 19:35:31 -0400
committerNoah Misch <noah@leadboat.com>2017-03-12 19:35:49 -0400
commit08c6d42c8c63c62aeaaf71cd6375baef798c5924 (patch)
treea2e9fb4ada99828eda938a58ac28a524831cfe18 /src/interfaces/ecpg/ecpglib/misc.c
parent8469923f3ea893ee0261a234e2e5136663064d52 (diff)
downloadpostgresql-08c6d42c8c63c62aeaaf71cd6375baef798c5924.tar.gz
postgresql-08c6d42c8c63c62aeaaf71cd6375baef798c5924.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/interfaces/ecpg/ecpglib/misc.c')
0 files changed, 0 insertions, 0 deletions