aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2023-01-26 14:50:07 +1300
committerThomas Munro <tmunro@postgresql.org>2023-01-26 14:52:19 +1300
commitffcf6f4cfca5a4ce2ac7ff7e8fa17541a5a9caea (patch)
tree416e857ce53e6dc7a65e5c0be90c73969270dff7 /src/backend/access/gist/gist.c
parent9aeff092c05820d6a9252d7a3f8db86f71f2205f (diff)
downloadpostgresql-ffcf6f4cfca5a4ce2ac7ff7e8fa17541a5a9caea.tar.gz
postgresql-ffcf6f4cfca5a4ce2ac7ff7e8fa17541a5a9caea.zip
Fix rare sharedtuplestore.c corruption.
If the final chunk of an oversized tuple being written out to disk was exactly 32760 bytes, it would be corrupted due to a fencepost bug. Bug #17619. Back-patch to 11 where the code arrived. While testing that (see test module in archives), I (tmunro) noticed that the per-participant page counter was not initialized to zero as it should have been; that wasn't a live bug when it was written since DSM memory was originally always zeroed, but since 14 min_dynamic_shared_memory might be configured and it supplies non-zeroed memory, so that is also fixed here. Author: Dmitry Astapov <dastapov@gmail.com> Discussion: https://postgr.es/m/17619-0de62ceda812b8b5%40postgresql.org
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions