pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further harden nbtree posting split code.
Date: Wed, 27 Oct 2021 19:12:55 +0000
Message-ID: <E1mfoM3-0001kr-5q@gemulon.postgresql.org> (raw)

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
------
master

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

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



view thread (3+ messages)

Message-ID: <E1mfoM3-0001kr-5q@gemulon.postgresql.org>
Permalink:  ../E1mfoM3-0001kr-5q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mfoM3-0001kr-5q@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Further harden nbtree posting split code.
  In-Reply-To: <E1mfoM3-0001kr-5q@gemulon.postgresql.org>
  References: <E1mfoM3-0001kr-5q@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox