From: jitokim (@jitokim) <noreply+jitokim@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #1026: HNSW: don't rewind insertPage to deleted slots that cannot fit the element
Date: Fri, 23 Oct 2026 04:35:26 +0000
Message-ID: <gh-pgvector-pgvector-1026-c6357472351@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1026@github.com>
References: <gh-pgvector-pgvector-1026@github.com>
Thanks, that fixed it. Same setup on 4e34dea (PG 16.10):
- Index built with 4e34dea: an insert that doesn't fit any freed slot is now ~1,400 buffers (read ~145), down from ~4,260 (read 2,868) on 78647a3. 8 inserts in a row stay flat at ~2,250 hits each, and insertPage moves to the new page once the index extends.
- Index built and vacuumed with master, then 4e34dea installed: the first insert still reads the whole index once (2,869) and moves insertPage to the end. After that it's ~1,550 per insert. Master stays at ~4,400 per insert.
- 038, 049 and 050 pass.