Mark Dilger <mark.dil...@enterprisedb.com> writes: > Yeah, I'm already looking at that. The logic in verify_heapam skips over > line pointers that are unused or dead, and the test is reporting zero > corruption (and complaining about that), so it's probably not going to help > to overwrite all the line pointers with this particular bit pattern any more > than to just overwrite the first one, as it would just skip them all.
> I think the test should overwrite the line pointers with a variety of > different bit patterns, or one calculated to work on all platforms. I'll > have to write that up. What we need here is to produce the same test results on either endianness. So probably the thing to do is apply the equivalent of ntohl() to produce a string that looks right for either host endianness. As a separate matter, you'd want to test corruption producing any of the four flag bitpatterns, probably. It says here you can use Perl's pack/unpack functions to get the equivalent of ntohl(), but I've not troubled to work out how. regards, tom lane