aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2021-03-12 17:30:17 -0500
committerRobert Haas <rhaas@postgresql.org>2021-03-12 17:34:32 -0500
commit661125612706b1d0d5ed9f12d18908b08512a7eb (patch)
tree3e589c466d493d418bd1ef46397d092b9a84d403 /src/backend/access/transam/commit_ts.c
parent02b5940dbea17d07a1dbcba3cbe113cc8b70f228 (diff)
downloadpostgresql-661125612706b1d0d5ed9f12d18908b08512a7eb.tar.gz
postgresql-661125612706b1d0d5ed9f12d18908b08512a7eb.zip
Fix portability issues in pg_amcheck's 004_verify_heapam.pl.
Test #12 overwrote a 1-byte varlena header to make it look like the initial byte of a 4-byte varlena header, but the results were endian-dependent. Also, the byte "abc" that followed the overwritten byte would be interpreted differently depending on endian-ness. Overwrite 4 bytes instead, in an endian-aware manner. Test #13 accidentally managed to depend on TOAST_MAX_CHUNK_SIZE, which varies slightly depending on MAXIMUM_ALIGNOF. That's not the point anyway, so make the regexp insensitive to the expected number of chunks. Mark Dilger Discussion: http://postgr.es/m/A80D68F6-E38F-482D-9522-E2FB6AAFE8A1@enterprisedb.com
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions