- Notifications
You must be signed in to change notification settings - Fork5
Commitea0b414
committed
Fix line end mishandling in pg_upgrade on Windows.
pg_upgrade opened the output from pg_dumpall in text mode andwrote the split files in text mode. This caused unwanted eatingof intended carriage returns on input and production of spuriouscarriage returns on output. To avoid this, open all these filesin binary mode. On non-Windows platforms, this change has noeffect.Backpatch to 9.0. On 9.0 and 9.1, we also switch from redirectingpg_dumpall's output to using pg_dumpall's -f switch, for the samereason.1 parent28ab4a5 commitea0b414
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 |
| |
62 |
| - | |
| 68 | + | |
63 | 69 |
| |
64 | 70 |
| |
65 |
| - | |
| 71 | + | |
66 | 72 |
| |
67 | 73 |
| |
68 |
| - | |
| 74 | + | |
69 | 75 |
| |
70 | 76 |
| |
71 | 77 |
| |
|
0 commit comments
Comments
(0)