pg_inference
alohadb · AlohaDB: ONNX inference using AlohaDB core vector types
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102387 | pg_inference | alohadb | 1.0 | RAG | MIT | C |
PostgreSQL · 18
Usage
Sources:
pg_inference 1.0 provides onnx inference using alohadb core vector types. This preview module is scoped to the PostgreSQL 18 fork in AlohaDB 21.1.0; stock PostgreSQL compatibility is not established.
Workflow
Installation requires a superuser; function use also requires the appropriate object privileges.
Operational boundaries
pg_load_model accepts model bytes; pg_infer and pg_batch_infer consume AlohaDB vector values. The library must be compiled with ONNX Runtime or model operations fail. pg_inference.device selects CPU/CUDA capability and pg_inference.max_models bounds the backend-local cache. Models must match expected tensor shapes. Treat model bytes as trusted inputs and budget backend memory; loading a model is not a durable deployment across sessions.
This module corresponds to the former upstream name alohadb_inference. Follow AlohaDB’s cluster/object conversion procedure and do not substitute an unrelated implementation with a similar name. Rehearse dependencies, privileges and backup restoration before upgrades.