pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: blaifa (@blaifa) <noreply+blaifa@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #986: Cap IVFFlat k-means samples to fit maintenance_work_mem
Date: Sun, 14 Jun 2026 18:48:08 +0000
Message-ID: <gh-pgvector-pgvector-986-c4702702156@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-986@github.com>
References: <gh-pgvector-pgvector-986@github.com>

Update: I managed to retrieve your full initial review text right after posting my previous message! 

I have applied all the requested changes and pushed them to the branch:
1. **Edge Case Handling:** `IvfflatMaxKmeansSamples` now computes `minRequired` and errors out immediately if `maxMem` is too low, avoiding the misleading `NOTICE`.
2. **Expanded Tests:** Updated `046_ivfflat_low_memory_samples.pl` to include `halfvec(3)`, high-dimensional vectors (`1536`), and a `1kB` ultra-low memory constraint to ensure it fails fast.
3. **Type Consistency:** Changed `samplesCapacity` to `Size` in `IvfflatKmeansMemoryRequired`.
4. **Changelog:** Updated the wording to "Capped".

view thread (6+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-986-c4702702156@github.com>
Permalink:  ../gh-pgvector-pgvector-986-c4702702156@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