pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: VladlenPopolitov (@VladlenPopolitov) <noreply+VladlenPopolitov@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #678: Iterative index scans
Date: Wed, 25 Sep 2024 09:57:33 +0000
Message-ID: <gh-pgvector-pgvector-678-c2373621939@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-678@github.com>
References: <gh-pgvector-pgvector-678@github.com>

> @ankane I'm unlikely to dive into this tonight, but from a quick [doc read on index scanning](https://www.postgresql.org/docs/current/index-scanning.html) the scan keys should be available in `amrescan`. I see that `hnswrescan` is checking that, so my very quick thought is that the optimizer may not be pushing the scan keys down to this particular path. Curious what `nkeys` has?

@jkatz nkeys is more than  zero if 1) index build with multiple columns or expressions 2) these columns or expressions are used in WHERE clause (and operator is described in class operator definition) - the number of these operators in WHERE equals to nkeys.  The first condition already is not true for pgvector, it is not defined as multicolumn index and cannot accept other columns in CREATE INDEX command.

view thread (46+ messages)  latest in thread

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