From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #434: Limit HNSW build's shared memory size for small tables
Date: Thu, 25 Jan 2024 08:28:32 +0000
Message-ID: <gh-pgvector-pgvector-434-c1909646524@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-434@github.com>
References: <gh-pgvector-pgvector-434@github.com>
Makes sense to me. <strike>I think the max memory needed would be `total memory needed for a HNSW_MAX_DIM element * (relation pages + TOAST pages)`.</strike>
Edit: Nevermind, needs to be the opposite (max number of `dimension` vectors that could be present in those pages)