From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #662: Normal filtering doesn't seem to use normal index
Date: Tue, 27 Aug 2024 22:06:26 +0000
Message-ID: <gh-pgvector-pgvector-662-c2313658587@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-662@github.com>
References: <gh-pgvector-pgvector-662@github.com>
Hi @Jontpan, Postgres doesn't account for TOAST in the seq scan cost, which can make it look cheaper. You can use `SET LOCAL enable_seqscan = off;` inside a transaction to encourage the planner to use indexes for a specific query.