pgsql: Further harden nbtree posting split code.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Further harden nbtree posting split code.
Date: 2021-10-27 19:12:55
Message-ID: E1mfoM3-0001kv-6d@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f8cce4a3d88ccce830086bc80b563bd152f4955f

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 24 ++++++++++++++++++++++--
src/backend/access/nbtree/nbtsearch.c | 17 +++++++++++++++++
2 files changed, 39 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2021-10-27 19:53:51 pgsql: Fix VPATH builds for src/test/ssl targets
Previous Message Jeff Davis 2021-10-27 15:12:23 Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().