BUG #14634: On Windows pg_basebackup should write tar to stdout in binary mode

From: henry_boehlert(at)agilent(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14634: On Windows pg_basebackup should write tar to stdout in binary mode
Date: 2017-04-28 08:28:18
Message-ID: 20170428082818.24366.13134@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-bugs pgsql-hackers

The following bug has been logged on the website:

Bug reference: 14634
Logged by: Henry Boehlert
Email address: henry_boehlert(at)agilent(dot)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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Antonin Houska 2017-04-28 08:46:09 Re: WIP: Aggregation push-down
Previous Message Kyotaro HORIGUCHI 2017-04-28 08:26:24 Re: Interval for launching the table sync worker

Browse pgsql-bugs by date

  From Date Subject
Next Message Pietro Pugni 2017-04-28 09:04:01 Re: BUG #14632: Plus and minus operators inconsistency with leap years and year intervals.
Previous Message Pietro Pugni 2017-04-28 08:28:05 Re: BUG #14632: Plus and minus operators inconsistency with leap years and year intervals.