| From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add _bt_binsrch() scantid assertion to nbtree. |
| Date: | 2019-09-09 18:42:57 |
| Message-ID: | E1i7Ocr-0003Ui-DB@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2019-09-09 20:25:25 | pgsql: Stamp 12beta4. |
| Previous Message | Tom Lane | 2019-09-09 18:22:10 | pgsql: Be more careful about port selection in src/test/ldap/. |