Add a test for incomplete splits in B-tree indexes
authorHeikki Linnakangas <[email protected]>
Tue, 2 Dec 2025 19:10:47 +0000 (21:10 +0200)
committerHeikki Linnakangas <[email protected]>
Tue, 2 Dec 2025 19:10:47 +0000 (21:10 +0200)
commit1e4e5783e7d77adb283ae7fa1ac99b0910a041b2
tree69c439f0628cc3d16c3fb25feb51b0d7dce6ccd5
parentf894acb24a12cf1f369a45af36c8f4049f9af571
Add a test for incomplete splits in B-tree indexes

To increase our test coverage in general, and because I will add onto
this in the next commit to also test amcheck with incomplete splits.

This is copied from the similar test we had for GIN indexes. B-tree's
incomplete splits work similarly to GIN's, so with small changes, the
same test works for B-tree too.

Reviewed-by: Peter Geoghegan <[email protected]>
Discussion: https://www.postgresql.org/message-id/abd65090-5336-42cc-b768-2bdd66738404@iki.fi
src/backend/access/nbtree/nbtinsert.c
src/test/modules/meson.build
src/test/modules/nbtree/Makefile [new file with mode: 0644]
src/test/modules/nbtree/expected/nbtree_incomplete_splits.out [new file with mode: 0644]
src/test/modules/nbtree/meson.build [new file with mode: 0644]
src/test/modules/nbtree/sql/nbtree_incomplete_splits.sql [new file with mode: 0644]