gv_index
opengauss · openGauss graph-based vector index access method
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102035 | gv_index | opengauss | 1.0 | RAG | MulanPSL-2.0 | C++ |
Usage
Sources:
gv_index 1.0 adds the gv_graph vector access method to openGauss. It uses openGauss vector types and operators plus the GaussVector library; it is not a stock PostgreSQL/pgvector compatibility claim.
Create an Index
Query and Maintain
Load dimension-matched vectors into the source table and order a query by L2 distance to a query vector, using the kernel distance operator. The SQL script defines vector_l2_ops and vector_cosine_ops; the latter uses the openGauss inner-product operator and norm function. The upstream example also demonstrates INSERT, DELETE and VACUUM. gv_graph_nprobes controls search probing, while construction options include graph degree, quantization, subgraph count and parallelism. These controls belong to this kernel module, not the similarly named pgvector access methods.
Runtime Boundary
The build requires VECTOR_HOME pointing to GaussVector headers and libannlite.so; when the directory is absent the module is skipped. The example uses ustore tables and index-scan optimization. Install with administrator privileges. The control is relocatable but not trusted; library initialization occurs when loaded and does not require shared preload. No PostgreSQL-major support list is published for this openGauss module.