Mask full LSN and checksum in tests
authorChristoph Berg <myon@debian.org>
Tue, 15 Apr 2025 12:43:10 +0000 (12:43 +0000)
committerChristoph Berg <myon@debian.org>
Tue, 15 Apr 2025 12:51:16 +0000 (14:51 +0200)
commitffe9db85b7365e7ebf47e68a870cb4826b9c42a1
tree4d8de5c420a4f904a5fc08e588e2ea3ea24e5873
parent7e26baf3725a9f2ed6ce9d312178c1137fcac431
Mask full LSN and checksum in tests

The old LSN masking didn't consider LSNs with a log id with two or more
digits. Checksums were hard-coded to 0000 so far, but the server might
actually write them.

To not clutter the test files with ever-longer sed commands, move the
command to a new sed.sh file.

Test files updated to follow this change, but there are pre-existing
problems on older PG majors and 32-bit that are still open.

Close #37.

Reported-By: Maksim Melnikov <m.melnikov@postgrespro.ru>
21 files changed:
expected/datatypes.out
expected/datatypes_3.out
expected/float.out
expected/float_1.out
expected/float_3.out
expected/float_4.out
expected/numeric.out
expected/numeric_1.out
expected/numeric_3.out
expected/numeric_4.out
expected/toast.out
expected/toast_1.out
expected/toast_3.out
expected/toast_4.out
expected/xml.out
expected/xml_1.out
expected/xml_3.out
run_test.sql
sed.sh [new file with mode: 0755]
sql/datatypes.sql
sql/toast.sql