vexec_pgvector
pg_vexec · pgvector distance kernel declarations for the vexec batch executor
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102172 | vexec_pgvector | pg_vexec | 1.1 | RAG | Apache-2.0 | C |
PostgreSQL · 19
Usage
Sources:
vexec_pgvector is a PostgreSQL 19 companion to the vexec vectorized executor. It registers declarations for the underlying extension’s functions so batch execution can reuse their behavior.
Core Workflow
Operational Boundaries
Preload both vexec and vexec_pgvector on every participating server and restart; preload order is unrestricted. vexec.mode must enable vector execution. CREATE EXTENSION vexec_pgvector is optional inspection support and requires the underlying vector extension; it does not activate hooks. vexec.declared_calls() shows the bound calls. A superuser creates the non-relocatable SQL objects.
The pack binds only pgvector 0.8.6 and 0.8.7. Other versions run without pack acceleration. It calls pgvector functions through fmgr and checks matching dimensions; erroring rows fall back to PostgreSQL evaluation. It is not a new vector index method.
Version 1.1 Batch Search
Version1.1 adds vexec_pgvector.batch_topk for exact L2 nearest neighbors over a candidate relation, accepting vector or halfvec arrays. It returns query subscripts, integer candidate IDs and distances, with ties ordered by ID and NULL candidates/IDs skipped. The scan uses caller privileges and row visibility; it does not add an ANN index. Existing installations have a1.0-to1.1 upgrade script.