From: henry_boehlert@agilent.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14634: On Windows pg_basebackup should write tar to stdout in binary mode
Date: Fri, 28 Apr 2017 08:28:18 +0000
Message-ID: <20170428082818.24366.13134@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14634
Logged by: Henry Boehlert
Email address: henry_boehlert@agilent.com
PostgreSQL version: 9.6.2
Operating system: Windows Server 2012 R2 6.3.9600
Description:
Executing command pg_basebackup -D -F t writes its output to stdout, which
is open in text mode, causing LF to be converted to CR LF thus corrupting
the resulting archive.
To write the tar to stdout, on Windows stdout's mode should be temporarily
switched to binary.
https://msdn.microsoft.com/en-us/library/tw4k6df8.aspx
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: henry_boehlert@agilent.com
Subject: Re: BUG #14634: On Windows pg_basebackup should write tar to stdout in binary mode
In-Reply-To: <20170428082818.24366.13134@wrigleys.postgresql.org>
References: <20170428082818.24366.13134@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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