aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/copyfromparse.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2022-06-22 13:11:49 -0400
committerRobert Haas <rhaas@postgresql.org>2022-06-22 13:11:49 -0400
commite243de03fb4583dd4a9f0afb41493727d7946c02 (patch)
treedf9210bae2d7ac6746952a14701fe91505252cb9 /src/backend/commands/copyfromparse.c
parent9f0b953457012a41321ab62cffa6aeabcb6e99b2 (diff)
downloadpostgresql-e243de03fb4583dd4a9f0afb41493727d7946c02.tar.gz
postgresql-e243de03fb4583dd4a9f0afb41493727d7946c02.zip
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
Diffstat (limited to 'src/backend/commands/copyfromparse.c')
0 files changed, 0 insertions, 0 deletions