//
Search across all documentation pages
CREATE EXTENSION vector VERSION '0.8.0' matches OS package.extensions.vector. Avoid search_path surprises in pooled connections.vector(1536) plus CHECK (vector_dims(embedding) = 1536).<=> with vector_cosine_ops for normalized text embeddings.ef_search or ivfflat.probes.CREATE INDEX CONCURRENTLY in production. Schedule RAM-heavy builds off-peak.tenant_id for SaaS. Set session variable per request at pooler.WHERE embedding IS NOT NULL. Pending embed jobs should not bloat ANN index.content_hash unchanged.hnsw.ef_search per environment. Staging can use higher recall than peak-hour production.maintenance_work_mem session bump for migration role only.Stack versions: This page was written for PostgreSQL 18.4 (stable 18, maintenance 17), pgvector 0.8+, PostGIS 3.5+, pgbouncer 1.x, and Patroni 3.x.
Reviewed by Chris St. John·Last updated Jul 19, 2026