Further harden nbtree posting split code.
commita5213adf3d351a31c5f5eae1a756a9d3555dc31c
authorPeter Geoghegan <pg@bowt.ie>
Wed, 27 Oct 2021 19:10:47 +0000 (27 12:10 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 27 Oct 2021 19:10:47 +0000 (27 12:10 -0700)
tree8b101c4fa5cf5ba5110dd0a0b71d0fe38a1cdc17
parenteff61383b982be8dc71d942340a839bea88a9eab
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