pg_hybrid
hybrid storage engine: columnar, vector, fulltext
pg_hybrid · hybrid storage engine: columnar, vector, fulltext
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101555 | pg_hybrid | pg_hybrid | 1.0 | RAG | Apache-2.0 | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_hybrid.control)
- Official extension SQL (pg_hybrid–1.0.sql)
pg_hybrid — PostgreSQL 16 extension providing IVFFlat index access method for vector similarity search. Use it for the corresponding vector, model, or retrieval workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
array_to_hvector(double precision[], integer, boolean)is an extension function and returnshvector.array_to_hvector(integer[], integer, boolean)is an extension function and returnshvector.array_to_hvector(numeric[], integer, boolean)is an extension function and returnshvector.array_to_hvector(real[], integer, boolean)is an extension function and returnshvector.hvector(hvector, integer, boolean)is an extension function and returnshvector.hvector_accum(double precision[], hvector)is an extension function and returnsdouble.hvector_add(hvector, hvector)is an extension function and returnshvector.hvector_avg(double precision[])is an extension function and returnshvector.hvector_binary_quantize(hvector)is an extension function and returnsbit.hvector_cmp(hvector, hvector)is an extension function and returnsint4.hvector_combine(double precision[], double precision[])is an extension function and returnsdouble.hvector_concat(hvector, hvector)is an extension function and returnshvector.hvector_cosine_distance(hvector, hvector)is an extension function and returnsfloat8.hvector_dims(hvector)is an extension function and returnsinteger.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as non-relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.