In pg_amcheck tests, don't depend on perl's Q/q pack code.

Robert Haas <rhaas@postgresql.org>

Commit: 945d2cb7d0255e296a55f3e9febb5dce6eaccc3e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2021-03-13T15:57:01Z
Releases: 14.0
In pg_amcheck tests, don't depend on perl's Q/q pack code.

It does not work on all versions of perl across all platforms.

To avoid endian-ness issues, pick a new value for column a
that has the same upper 4 bytes as lower 4 bytes. Try to
make it something that isn't likely to occur anywhere nearby
in the page.

Discussion: http://postgr.es/m/29DA079B-0658-4E66-BDAA-0EFD7B64D9C6@enterprisedb.com

Files

PathChange+/−
src/bin/pg_amcheck/t/004_verify_heapam.pl modified +12 −9

Discussion