postgresql/src/backend/access
Tomas Vondra 8cea358b12 Use the correct PG_DETOAST_DATUM macro in BRIN
Commit 6bcda4a721 replaced PG_DETOAST_DATUM with PG_DETOAST_DATUM_PACKED
in two BRIN output functions, for minmax-multi and bloom opclasses. But
this is incorrect - the code is accessing the data through structs that
already include a 4B header, so the detoast needs to match that. But the
PACKED macro may keep the 1B header, which means the struct fields will
point to incorrect data.

Backpatch-through: 16
Discussion: https://postgr.es/m/1df00a66-db5a-4e66-809a-99b386a06d86%40enterprisedb.com
2024-04-14 18:24:38 +02:00
..
brin Use the correct PG_DETOAST_DATUM macro in BRIN 2024-04-14 18:24:38 +02:00
common doc: 1-byte varlena headers can be used for user PLAIN storage 2023-10-31 09:10:35 -04:00
gin Fix locking when fixing an incomplete split of a GIN internal page 2024-01-29 13:46:30 +02:00
gist Fix another bug in parent page splitting during GiST index build. 2023-09-26 14:15:01 +03:00
hash ExtendBufferedWhat -> BufferManagerRelation. 2023-08-23 12:33:24 +12:00
heap Set all_visible_according_to_vm correctly with DISABLE_PAGE_SKIPPING 2024-03-11 09:28:21 +02:00
index Promote assertion about !ReindexIsProcessingIndex to runtime error. 2024-02-25 16:15:07 -05:00
nbtree Fix btmarkpos/btrestrpos array key wraparound bug. 2023-09-28 16:29:35 -07:00
rmgrdesc Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
spgist Avoid trying to fetch metapage of an SPGist partitioned index. 2023-12-21 12:43:36 -05:00
table Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
tablesample Update copyright for 2023 2023-01-02 15:00:37 -05:00
transam Add more LOG messages when starting and ending recovery from a backup 2024-01-29 09:04:51 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00