# PostgreSQL 17 & pgvector 0.8 HNSW, Iterative Scans & Tuning > Verified PostgreSQL and pgvector reference for HNSW indexes, halfvec/bit quantization, filtered iterative scans, and connection pooling. ## Corpus Summary - Canonical Space URL: https://voxell.ai/p/postgresql-pgvector - Documents indexed: 3 (59 passages, 42.6 KB) - Citation Readiness (Aggarwal GEO): 83/100 (stat_density=0.50, self_contained=1.00) - Full machine-readable corpus bundle: https://voxell.ai/s/postgresql-pgvector/llms-full.txt ## Agent & MCP Integration (Zero API Key Required) Connect any MCP client or autonomous agent directly via Streamable HTTP: - Endpoint: `POST https://voxell.ai/s/postgresql-pgvector/mcp` - Tools: `search_verified_docs` (grounded passage search), `ask_cited_answer` (cited synthesis) ```bash curl -sS -X POST https://voxell.ai/s/postgresql-pgvector/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_verified_docs","arguments":{"query":"key facts and specifications","top_k":5}}}' ``` ## Document & Section Map - **official_ref_1_raw_githubusercontent_com_pg.md** (57 passages, 41.4 KB) - **pgvector-hnsw-and-halfvec-2560d.md** (1 passages, 724 B) - Section: pgvector HNSW Indexing, halfvec (>2000d) & Iterative Scans - **pgvector-filtered-queries-and-postgres17.md** (1 passages, 468 B) - Section: Multi-Tenant Filtered Vector Search in pgvector 0.8+ ## Verified Sample Citations (High Fact Density) - **[pgvector-filtered-queries-and-postgres17.md #0]**: # Multi-Tenant Filtered Vector Search in pgvector 0.8+ Filtered ANN queries (`WHERE tenant_id = $1 AND corpus_id = $2 ORDER BY embedding <#> $3 LIMIT 20`) previously returned fewer than `k` rows if post-filtering discarded HNSW candidates. In `pgvector 0.8.0+`, enable `SET LOCAL hnsw.iterative_scan = 'relaxed_order';` (alongside composite B-tree or partia... - **[pgvector-hnsw-and-halfvec-2560d.md #0]**: # pgvector HNSW Indexing, halfvec (>2000d) & Iterative Scans In `pgvector`, standard `vector` HNSW and IVFFlat indexes support up to `2,000` dimensions, whereas `halfvec` (FP16) indexes support up to `4,000` dimensions (and `bit` binary quantization up to `64,000` dimensions). To index 2560d embeddings (`Voxell Forge Pro 2560d`) in HNSW without MRL trunca...