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:38:31 +0000
Message-ID: <gh-pgvector-pgvector-986-c4702678750@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-986@github.com>
References: <gh-pgvector-pgvector-986@github.com>

Hi @sagitrs 

I saw that you requested changes, but your comment appears empty.

Just to summarize the approach: I've refactored the memory calculation into IvfflatKmeansMemoryRequired to avoid duplicate logic, capped the samples in ivfbuild.c based on maintenance_work_mem, and added a regression test (046_ivfflat_low_memory_samples.pl) to ensure it behaves correctly and emits the proper notice.

Please let me know if you have any specific feedback on the implementation or if there's anything you'd like me to change!

view thread (6+ messages)  latest in thread

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