From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add _bt_binsrch() scantid assertion to nbtree.
Date: Mon, 09 Sep 2019 18:42:57 +0000
Message-ID: <E1i7Ocr-0003Ui-DB@gemulon.postgresql.org> (raw)
Add _bt_binsrch() scantid assertion to nbtree.
Assert that _bt_binsrch() binary searches with scantid set in insertion
scankey cannot be performed on leaf pages. Leaf-level binary searches
where scantid is set must use _bt_binsrch_insert() instead.
_bt_binsrch_insert() is likely to have additional responsibilities in
the future, such as searching within GIN-style posting lists using
scantid. It seems like a good idea to tighten things up now.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/55d015bde05311cbaaf16424e3aa05c37946cd8a
Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
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: Add _bt_binsrch() scantid assertion to nbtree.
In-Reply-To: <E1i7Ocr-0003Ui-DB@gemulon.postgresql.org>
References: <E1i7Ocr-0003Ui-DB@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