pgml
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 1940 | pgml | No | Yes | Yes | Yes | Yes | No | pgml |
pgrx=0.12.9
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.10.0 | 1817161514 | pgml | - |
| RPM | PIGSTY | 2.10.0 | 1817161514 | pgml_$v | - |
| DEB | PIGSTY | 2.10.0 | 1817161514 | postgresql-$v-pgml | - |
Build
You can build the RPM / DEB packages for pgml using pig build:
Install
You can install pgml directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Create Extension:
Usage
After installing the pgml extension and python dependencies on all cluster nodes, you can enable pgml on the PostgreSQL cluster.
Edit the cluster configuration with patronictl, add pgml to shared_preload_libraries, and specify your venv directory in pgml.venv:
After that, restart database cluster, and create extension with SQL command:
If it works, you should see something like:
You are all set! Check PostgresML for more details: https://postgresml.org/docs/guides/use-cases/
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)