Skip to content

pg_inference

AlohaDB: ONNX inference using AlohaDB core vector types

alohadb · AlohaDB: ONNX inference using AlohaDB core vector types

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102387pg_inferencealohadb1.0RAGMITC

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

CREATE EXTENSION pg_inference;
SELECT * FROM pg_list_models();

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.

Table reader