diff options
author | Andres Freund <andres@anarazel.de> | 2015-07-07 12:47:44 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-07-07 12:54:11 +0200 |
commit | 5c0de384d2ceceb07e77e1368e07868244be6762 (patch) | |
tree | 6d38356f36061fd6a0a63fb7a13bb90641795192 /src/backend/commands/async.c | |
parent | 02eac01f91923592f93abf8d325ab806b058f948 (diff) | |
download | postgresql-5c0de384d2ceceb07e77e1368e07868244be6762.tar.gz postgresql-5c0de384d2ceceb07e77e1368e07868244be6762.zip |
Fix pg_recvlogical not to fsync output when it's a tty or pipe.
The previous coding tried to handle possible failures when fsyncing a
tty or pipe fd by accepting EINVAL - but apparently some
platforms (windows, OSX) don't reliably return that. So instead check
whether the output fd refers to a pipe or a tty when opening it.
Reported-By: Olivier Gosseaume, Marko Tiikkaja
Discussion: 559AF98B.3050901@joh.to
Backpatch to 9.4, where pg_recvlogical was added.
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions