pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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: Thu, 10 Sep 2026 13:57:13 +0000
Message-ID: <gh-pgvector-pgvector-1026-c5619859234@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1026@github.com>
References: <gh-pgvector-pgvector-1026@github.com>

Pushed two follow-up commits:

- `test/t/049_hnsw_sparsevec_insert_page.pl` — 30k `sparsevec` rows, 5% scattered delete, `VACUUM`, then asserts that a repeat large insert (and a large insert after a small one) reads less than half the index. The check is a ratio against `pg_relation_size`, so it does not depend on the machine. Fails on master (`9324 < 3751.5` FAILED), passes with this patch (~15 s).
- A comment above the latch explaining why it has to come after the size check.

Verified on `pgvector/pgvector:pg16` (0.8.6 / PG 16.15): `make installcheck` 14/14 and the full TAP suite (49 files, 1,256 tests) pass. Fixed-size `vector(512)` insert cost and final index sizes for append-only and delete/VACUUM/reinsert workloads are unchanged versus master. Full numbers in #1025.


view thread (14+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-1026-c5619859234@github.com>
Permalink:  ../gh-pgvector-pgvector-1026-c5619859234@github.com/

 · 


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