]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further harden nbtree posting split code.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 27 Oct 2021 19:10:45 +0000 (12:10 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 27 Oct 2021 19:10:45 +0000 (12:10 -0700)
commitd078fe83d592618d9137e50306566c5a34ceb8aa
tree20eedcd5ff19536799b93d3ca85f6713fd6283bf
parenta0b6520ecfd6bd938851ec386241d2e3c689e117
Further harden nbtree posting split code.

Add more defensive checks around posting list split code.  These should
detect corruption involving duplicate table TIDs earlier and more
reliably than any existing check.

Follow up to commit 8f72bbac.

Discussion: https://postgr.es/m/CAH2-WzkrSY_kjyd1_M5xJK1uM0govJXMxPn8JUSvwcUOiHuWVw@mail.gmail.com
Backpatch: 13-, where nbtree deduplication was introduced.
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtsearch.c