From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #756: consider supporting an `enable_approxscan` option
Date: Wed, 15 Jan 2025 15:28:01 +0000
Message-ID: <gh-pgvector-pgvector-756-c2593205079@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-756@github.com>
References: <gh-pgvector-pgvector-756@github.com>
> https://stackoverflow.com/questions/6146024/is-it-possible-to-temporarily-disable-an-index-in-postgr... @jkatz I mean `update pg_index set indisvalid = false where indexrelid = 'test_pkey'::regclass` to alter the index status instead of disabling all the index scan.
This is quoted from a StackOverflow post 14 years ago, and it's still not considered a safe operation (at least the last time I talked to PostgreSQL hackers who work on indexes on this topic). The mechanism for concurrent index building is different than the ongoing maintenance required for an index.