git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9f0b953) | patch
amcheck: Fix incorrect use of VARATT_IS_COMPRESSED.
2022年6月22日 17:11:49 +0000 (13:11 -0400)
2022年6月22日 17:11:49 +0000 (13:11 -0400)
commit e243de03fb4583dd4a9f0afb41493727d7946c02
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
contrib/amcheck/verify_heapam.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /