From: Ngalstyan4 (@Ngalstyan4) <noreply+Ngalstyan4@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #957: The case for including `NULL`s in pgvector indexes
Date: Thu, 19 Feb 2026 00:47:37 +0000
Message-ID: <gh-pgvector-pgvector-957-c3924053995@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-957@github.com>
References: <gh-pgvector-pgvector-957@github.com>
That's fair. I am aware of the difference.
I had previously seen cases where this kind of query would return significantly fewer results in index scan, compared to sequential scan. E.g. if I had ~1000 non-null vectors in the table, the query would return order of 100 results with default `ef_search` parameter, while sequential scan would return all 1000 results.
But despite that, I was still thrown off when I first noticed that the exact same query (`SELECT * FROM t ORDER BY val <-> '[1,1,1]';`) can return almost the same but slightly different results in the two cases. So, decided to bring it up in here, in case it is worth addressing in any way. The answer might be "no", in which case feel free to close the issue!