From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #760: HNSW Index Not Used When Combining ORDER BY Distance with Deduplication
Date: Sat, 18 Jan 2025 21:40:45 +0000
Message-ID: <gh-pgvector-pgvector-760-c2600102589@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-760@github.com>
References: <gh-pgvector-pgvector-760@github.com>
That's correct about the first query.
The second query should fail with `SELECT DISTINCT ON expressions must match initial ORDER BY expressions` (and does when I test it). See #641 for more info.