pgml
Run AL/ML workloads with SQL interface
pgml : Run AL/ML workloads with SQL interface
Overview
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLdt- | No | Yes | Yes | Yes | no | yes |
| Relationships | |
|---|---|
| Schemas | pgml |
| See Also | vectorize pg4ml pgcontext pgmnemo vector pg_summarize pg_ai_query |
pgrx=0.12.9
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.10.0 |
18 17 16 15 14 | pgml |
- |
| RPM | PIGSTY | 2.10.0 |
18 17 16 15 14 | pgml_$v |
- |
| DEB | PIGSTY | 2.10.0 |
18 17 16 15 14 | postgresql-$v-pgml |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| el8.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| el9.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| el9.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| el10.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| el10.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| d12.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| d12.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| d13.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| d13.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| u22.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| u22.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| u24.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| u24.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| u26.x86_64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
| u26.aarch64 | N/A | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 | PIGSTY 2.10.0 |
Source
github.com/postgresml/postgresml
pgml-2.10.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
This extension is lack of maintenance
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/