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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 2f20ced) | patch
Use the correct PG_DETOAST_DATUM macro in BRIN
2024年4月14日 16:19:52 +0000 (18:19 +0200)
2024年4月14日 16:19:58 +0000 (18:19 +0200)
commit bb616ed3e6a2b263be320026e1660bd36827c858
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
src/backend/access/brin/brin_bloom.c diff | blob | blame | history
src/backend/access/brin/brin_minmax_multi.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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