Add a test for incomplete splits in B-tree indexes
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-12-02T19:10:47Z
Releases:
19 (unreleased)
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 <pg@bowt.ie> Discussion: https://www.postgresql.org/message-id/abd65090-5336-42cc-b768-2bdd66738404@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/nbtree/nbtinsert.c | modified | +9 −0 |
| src/test/modules/meson.build | modified | +1 −0 |
| src/test/modules/nbtree/expected/nbtree_incomplete_splits.out | added | +179 −0 |
| src/test/modules/nbtree/Makefile | added | +28 −0 |
| src/test/modules/nbtree/meson.build | added | +16 −0 |
| src/test/modules/nbtree/sql/nbtree_incomplete_splits.sql | added | +134 −0 |
Discussion
- Bug in amcheck? 13 messages · 2025-10-22 → 2026-01-16