pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: cevian (@cevian) <noreply+cevian@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #756: consider supporting an `enable_approxscan` option
Date: Fri, 10 Jan 2025 19:17:55 +0000
Message-ID: <gh-pgvector-pgvector-756@github.com> (raw)

# problem

When monitoring the recall of a vector query, you sometimes want to disable all approximate indexes to get the ground_truth and monitor recall.

Yet `enable_indexscan` isn't ideal since it turns off all indexes, causing problems in complex queries that make use of multiple tables/indexes. 

# solution

Introduce a new guc convention, that if `enable_approxscan` is set and marked as off, turns off approximate indexes (by setting the cost really high as other enable_* gucs do). This guc wouldn't be defined in pgvector, but pgvector would check if it's set (just by name) and act accordingly. 

I propose `enable_approxscan` as the name but open to other suggestions.

I think this convention would ideally, in time apply to all approximate Postgres indexes, certainly we'd also implement it in pgvectorscale's diskann.

# question
Curious about thoughts on whether or not this is a good idea.




view thread (12+ messages)  latest in thread

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