From: detrin (@detrin) <noreply+detrin@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #918: HNSW scan lock as optional parameter
Date: Tue, 04 Nov 2025 15:35:34 +0000
Message-ID: <gh-pgvector-pgvector-918@github.com> (raw)
Looking into https://www.postgresql.org/docs/current/runtime-config-locks.html and https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Parameters... there are no optional parameters that would allow to disable the page lock during scan and partial scan.
Why should we even bother with that? Well, looking into the codebase, if I understand it correctly, during multiple concurrent scans, the lock table becomes a bottleneck. What if deletion and updates are rather infrequent? Could we make this locking during scans optional?