mirror of
https://github.com/postgres/postgres.git
synced 2026-06-27 17:31:57 -04:00
bt_normalize_tuple() uses VARSIZE() to get the size of varlena, even though it's not yet known, that it has a 4-byte header. Fix this by replacing a accessor with a universal VARSIZE_ANY(). Backpatch to all supported versions. Reported-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/7ckc7oka4bvafkf5bwlqs6ygrhlsbhz25ppozfch7zbuxcx3rf%40e4pr4oqenalc Author: Andrey Borodin <x4mmm@yandex-team.ru> Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com> Backpatch-through: 14 |
||
|---|---|---|
| .. | ||
| expected | ||
| sql | ||
| t | ||
| .gitignore | ||
| amcheck--1.0--1.1.sql | ||
| amcheck--1.0.sql | ||
| amcheck--1.1--1.2.sql | ||
| amcheck--1.2--1.3.sql | ||
| amcheck--1.3--1.4.sql | ||
| amcheck--1.4--1.5.sql | ||
| amcheck.control | ||
| Makefile | ||
| meson.build | ||
| verify_common.c | ||
| verify_common.h | ||
| verify_gin.c | ||
| verify_heapam.c | ||
| verify_nbtree.c | ||