aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-12-06 09:55:05 +0900
committerMichael Paquier <michael@paquier.xyz>2023-12-06 09:55:05 +0900
commitf0b53daa2c761e5349a91ebe1162c1ce87a8b33f (patch)
tree83ccfec86fd870b716a503982e4934fdca8ad1dc /src/backend/commands/trigger.c
parentbc0a368dc5bc2bef957ede025e7f81f74c7aa58f (diff)
downloadpostgresql-f0b53daa2c761e5349a91ebe1162c1ce87a8b33f.tar.gz
postgresql-f0b53daa2c761e5349a91ebe1162c1ce87a8b33f.zip
Apply filters to dump files all the time in 002_pg_upgrade.pl
This commit removes the restriction that would not apply filters to the dumps used for comparison in the TAP test of pg_upgrade when using the same base version for the old and new nodes. The previous logic would fail on Windows if loading a dump while using the same set of binaries for the old and new nodes, as the library dependencies updated in the old dump would append CRLFs to the dump file as it is treated as a text file. The dump filtering logic replaces all 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 comments generated by pg_dump and replaces CRLFs by LFs. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/60d434b9-53d9-9ea1-819b-efebdcf44e41@gmail.com Backpatch-through: 15
Diffstat (limited to 'src/backend/commands/trigger.c')
0 files changed, 0 insertions, 0 deletions