pgvector_hypo
pgvector_hypo · Session-local hypothetical IVFFlat indexes for pgvector query planning
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102031 | pgvector_hypo | pgvector_hypo | 0.1.0 | FEAT | PostgreSQL | C |
PostgreSQL · 16
| Relationships | |
|---|---|
| Requires | vector |
Usage
Sources:
- Official README.md
- Official pgvector_hypo.control
- Official pgvector_hypo–0.1.0.sql
- Official compatibility.md
pgvector_hypo 0.1.0 lets PostgreSQL 16 estimate plans with hypothetical pgvector 0.8.x IVFFlat indexes, without constructing an index. It predicts planner choices and costs, not execution speed, recall or build time.
Compare Plans
Session State and Coverage
pgvector_hypo_create_index() accepts a CREATE INDEX statement and returns a synthetic OID/name. pgvector_hypo_drop_index() removes one registration; pgvector_hypo_reset_index() is an alias for reset. State belongs to the current session and disappears at disconnect. Supported keys include fixed-dimension vector, halfvec and bit, ordinary columns and supported immutable expressions, with partial and compatible partitioned-table definitions. Only the documented IVFFlat operator classes are covered; HNSW is outside this release.
Operational Boundaries
Install with administrator privileges after the matching vector extension. No preload is required. Hypothetical indexes participate only in top-level plain EXPLAIN; ordinary execution, EXPLAIN ANALYZE and EXPLAIN EXECUTE cannot use them. No persistent index catalog row or relation file is created. Upstream still records two planner-choice mismatches at a build-sensitive fixed-bit boundary, so this is experimental evidence for planning, not a production performance guarantee.