postgresql/contrib/amcheck
Robert Haas e243de03fb amcheck: Fix incorrect use of VARATT_IS_COMPRESSED.
The macro is being applied to a TOAST pointer, not a varlena header.
Therefore the use of VARATT_IS_COMPRESSED() is wrong. We can check
VARATT_EXTERNAL_IS_COMPRESSED(), but then we don't need the length
check that follows.

Report and fix by Kyotaro Horiguchi.

Discussion: http://postgr.es/m/20220517.162719.1671558681467343711.horikyota.ntt@gmail.com
2022-06-22 13:11:49 -04:00
..
expected Make relation-enumerating operations be security-restricted operations. 2022-05-09 08:35:08 -07:00
sql Make relation-enumerating operations be security-restricted operations. 2022-05-09 08:35:08 -07:00
t Harden TAP tests that intentionally corrupt page checksums. 2022-03-25 14:23:26 -04:00
.gitignore
amcheck--1.0--1.1.sql
amcheck--1.0.sql
amcheck--1.1--1.2.sql
amcheck--1.2--1.3.sql
amcheck.control
Makefile
verify_heapam.c amcheck: Fix incorrect use of VARATT_IS_COMPRESSED. 2022-06-22 13:11:49 -04:00
verify_nbtree.c Silence compiler warnings from some older compilers. 2022-06-01 17:21:45 -04:00