From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
Date: Mon, 22 Jan 2024 00:16:31 +0000
Message-ID: <gh-pgvector-pgvector-424-rc1461232626@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-424-rc1461131660@github.com>
References: <gh-pgvector-pgvector-424@github.com>
<gh-pgvector-pgvector-424-rc1461131660@github.com>
(on src/hnsw.c:104)
From `pathnodes.h`:
```text
selectivity for "normal" (JOIN_INNER) semantics; -1 if not yet set; >1 means a redundant clause
```
I'm not sure if there are cases where it'll be out of that range when they get to this function, but seems better to be safe.