pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. @ 2015-07-07 11:14 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Andres Freund @ 2015-07-07 11:14 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/5c0de384d2ceceb07e77e1368e07868244be6762 Modified Files -------------- src/bin/pg_basebackup/pg_recvlogical.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. @ 2015-07-07 11:14 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Andres Freund @ 2015-07-07 11:14 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8022b0a35f7c4e71908a878c8c412b5c2ae8536c Modified Files -------------- src/bin/pg_basebackup/pg_recvlogical.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. @ 2015-07-07 11:14 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Andres Freund @ 2015-07-07 11:14 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/1790b35baf52fff7f670f7cc1159a1b40b36e701 Modified Files -------------- src/bin/pg_basebackup/pg_recvlogical.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-07-07 11:14 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-07-07 11:14 pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. Andres Freund <andres@anarazel.de> 2015-07-07 11:14 pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. Andres Freund <andres@anarazel.de> 2015-07-07 11:14 pgsql: Fix pg_recvlogical not to fsync output when it's a tty or pipe. Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox