From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #678: Iterative index scans
Date: Fri, 27 Sep 2024 20:21:08 +0000
Message-ID: <gh-pgvector-pgvector-678-c2379994200@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-678@github.com>
References: <gh-pgvector-pgvector-678@github.com>
> This is true from the user's perspective :) It'd be great if we could do something similar, but the recheck code in Postgres requires strict ordering.
I recall (no pun intended) that you could actually get it to return results in an incorrect order, but only if you didn't recheck. That said, that's on the index implementor interfacing with GiST.
That said, I know that approximate search with vectors has been a topic of discussion for the SQL committee - I don't know if that will end up leading to additional SQL syntax around approximate searches, but that is one way that the inherent semantics could change. Until then, I agree with Andrew's original point.