postgresql/src/bin/pg_basebackup
Andres Freund 5c0de384d2 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.
2015-07-07 12:54:11 +02:00
..
po Translation updates 2015-06-28 23:56:55 -04:00
t Truncate strings in tarCreateHeader() with strlcpy(), not sprintf(). 2015-06-21 20:04:36 -04:00
.gitignore Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
Makefile Fix parallel make risk with new check temp-install setup 2015-04-29 20:34:22 -04:00
nls.mk Translation updates 2014-12-15 16:19:59 -05:00
pg_basebackup.c Use appendStringInfoString/Char et al where appropriate. 2015-07-02 12:36:03 +03:00
pg_receivexlog.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
pg_recvlogical.c Fix pg_recvlogical not to fsync output when it's a tty or pipe. 2015-07-07 12:54:11 +02:00
receivelog.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
receivelog.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00
streamutil.c pg_basebackup: Remove redundant newline in error message 2015-06-22 20:40:40 -04:00
streamutil.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00