From f86a357ccc6349a6c1e781d1e68dd5d3b905cd63 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 20 Aug 2026 14:36:41 +0100 Subject: [PATCH] fix: mini pgvector cleanup --- application/vectorstore/pgvector.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/vectorstore/pgvector.py b/application/vectorstore/pgvector.py index f00ee73c..89434378 100644 --- a/application/vectorstore/pgvector.py +++ b/application/vectorstore/pgvector.py @@ -18,14 +18,14 @@ DEFAULT_EMBEDDING_DIM = 768 SCHEMA_LOCK_KEY = "docsgpt:vectors:ddl" # The connection pools moved to ``application.vectorstore.pgconn`` so the graph -# store can share them without importing this module. These names stay bound -# here — same objects, not copies — because callers and tests reach for -# ``pgvector._POOLS`` / patch ``pgvector._pool_for``. -POOL_TIMEOUT_SECONDS = pgconn.POOL_TIMEOUT_SECONDS +# store can share them without importing this module. Only the names something +# actually reaches through *this* module stay bound here — same objects, not +# copies: callers and tests read ``pgvector._POOLS``, patch +# ``pgvector._pool_for``, and assert on ``pgvector.DEFAULT_POOL_MAX_SIZE``. +# Anything else belongs to ``pgconn`` alone; re-exporting it here would just be +# a second name to keep in sync. DEFAULT_POOL_MAX_SIZE = pgconn.DEFAULT_POOL_MAX_SIZE _POOLS = pgconn._POOLS -_POOLS_LOCK = pgconn._POOLS_LOCK -_configure_pooled_connection = pgconn.configure_pooled_connection _pool_for = pgconn.pool_for