PostgresML
Documentation

PostgresML is a open-source database extension that turns Postgres into an end-to-end machine learning platform. Build, train, and deploy ML/AI models directly within your Postgres database without moving data between systems.

Things you may
want to know

What is PostgresML?

add remove

PostgresML is an open-source database extension that turns Postgres into an end-to-end machine learning platform. It allows you to build, train, and deploy ML models directly within your Postgres database without moving data between systems.

What is a DB extension?

add remove

A database extension is software that extends the capabilities of a database. Postgres allows extensions to add new data types, functions, operators, indexes, etc. PostgresML uses extensions to bring machine learning capabilities natively into Postgres.

How does it work?

add remove

PostgresML installs as extensions in Postgres. It provides SQL API functions for each step of the ML workflow like importing data, transforming features, training models, making predictions, etc. Models are stored back into Postgres tables. This unified approach eliminates complexity.

What are the benefits?

add remove

Benefits include faster development cycles, reduced latency, tighter integration between ML and applications, leveraging Postgres' reliability and ACID transactions, and horizontal scaling.

What are the cons?

add remove

PostgresML requires using Postgres as the database. If your data currently resides in a different database, there would be some upfront effort required to migrate the data into Postgres in order to utilize PostgresML's capabilities.

What is hosted PostgresML?

add remove

Hosted PostgresML is a fully managed cloud service that provides all the capabilities of open source PostgresML without the need to run your own database infrastructure.

With hosted PostgresML, you get:

  • Flexible compute resources - Choose CPU, RAM or GPU machines tailored to your workload
  • Horizontally scalable inference with read-only replicas
  • High availability for production applications with multi-region deployments
  • Support for multiple users and databases
  • Automated backups and point-in-time restore
  • Monitoring dashboard with metrics and logs

In summary, hosted PostgresML removes the operational burden so you can focus on developing machine learning applications, while still getting the benefits of the unified PostgresML architecture.

Have Questions?

Join our Discord and ask us anything! We're friendly and would love to talk about PostgresML and PgCat.

🦉

Try PostresML using our free serverless cloud.