forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbfc677c
committed
Apply filters to dump files all the time in 002_pg_upgrade.pl
This commit removes the restriction that would not apply filters to thedumps used for comparison in the TAP test of pg_upgrade when using thesame base version for the old and new nodes.The previous logic would fail on Windows if loading a dump while usingthe same set of binaries for the old and new nodes, as the librarydependencies updated in the old dump would append CRLFs to the dumpfile as it is treated as a text file. The dump filtering logic replacesall CRLFs (\r\n) by LFs (\n), which is able to prevent this issue.When the old and new versions of the binaries are the same,AdjustUpgrade removes all blank lines, removes version-based commentsgenerated by pg_dump and replaces CRLFs by LFs.Reported-by: Alexander LakhinDiscussion:https://postgr.es/m/60d434b9-53d9-9ea1-819b-efebdcf44e41@gmail.comBackpatch-through: 151 parent824dbea commitbfc677c
1 file changed
+3
-9
lines changedLines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
440 |
| - | |
441 |
| - | |
442 |
| - | |
443 |
| - | |
444 |
| - | |
445 |
| - | |
446 |
| - | |
447 |
| - | |
448 |
| - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
449 | 443 |
| |
450 | 444 |
| |
451 | 445 |
| |
|
0 commit comments
Comments
(0)