summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorHeikki Linnakangas2021-01-20 09:58:03 +0000
committerHeikki Linnakangas2021-01-20 09:58:03 +0000
commit6b4d3046f422c2682365924b515c7588d5a3e651 (patch)
tree828a719ca6afa612bb6647ca5083c332e45181fa /src/include/postgres.h
parent679744cf1b0d0569d16b4dd2d020f9095ea3d53b (diff)
Fix bug in detecting concurrent page splits in GiST insert
In commit 9eb5607e699, I got the condition on checking for split or deleted page wrong: I used && instead of ||. The comment correctly said "concurrent split _or_ deletion". As a result, GiST insertion could miss a concurrent split, and insert to wrong page. Duncan Sands demonstrated this with a test script that did a lot of concurrent inserts. Backpatch to v12, where this was introduced. REINDEX is required to fix indexes that were affected by this bug. Backpatch-through: 12 Reported-by: Duncan Sands Discussion: https://www.postgresql.org/message-id/a9690483-6c6c-3c82-c8ba-dc1a40848f11%40deepbluecap.com
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions