Build high-performance machine learning models with a pure-Julia stack featuring native GPU support, differentiable programming, and seamless SciML integration.
PostgresML
Maximize performance and security by running machine learning models and LLMs directly within your PostgreSQL database using GPU-accelerated SQL functions.
$4/user/month

About PostgresML
PostgresML is an open-source extension for PostgreSQL that integrates machine learning and artificial intelligence capabilities directly into the database environment. By allowing inference and training to happen where the data resides, it eliminates the need for expensive data transfers between databases and external model-serving microservices. This architecture allows for massive performance gains, with the platform reaching inference speeds between 8 to 40 times faster than traditional HTTP-based model serving. It is designed to handle millions of transactions per second, making it a viable solution for high-scale production environments that require low-latency AI responses. The tool provides a unified suite of features, including support for over 47 classification and regression algorithms like XGBoost and LightGBM. Beyond traditional ML, it offers deep integration with the Hugging Face model hub, giving users access to thousands of state-of-the-art Large Language Models for natural language processing tasks. A core component of the platform is its built-in Retrieval-Augmented Generation (RAG) pipeline, which uses dedicated SQL functions to handle document chunking, vector embedding, and re-ranking within a single query. It leverages the pgvector extension for efficient similarity searches, providing a robust alternative to standalone vector databases. PostgresML is primarily built for data engineers, backend developers, and MLOps teams who want to simplify their tech stack and improve data security. Since operations are performed in-database, sensitive information never has to leave the protected database environment to interact with external APIs. What sets PostgresML apart from other AI solutions is its horizontal scalability and its ability to leverage GPU acceleration while maintaining full compatibility with existing PostgreSQL tools and client libraries like psycopg and various ORMs. This allows organizations to build and scale sophisticated AI features using their existing database expertise.
PostgresML pros & cons
Pros
- Inference is 8-40X faster than traditional HTTP-based model serving methods.
- Consolidates data and ML models into one system for enhanced data privacy.
- Offers a unified RAG workflow including chunking, embedding, and ranking in SQL.
- Supports millions of transactions per second through the pgcat pooler.
- Integrates seamlessly with existing Python, Rust, and JavaScript SDKs.
Cons
- Does not currently support direct integration with remote providers like OpenAI.
- Requires a specific extension that may not be available on all managed DB providers.
- Full documentation for some advanced functions is currently still in development.
- Self-hosting requires infrastructure knowledge for managing GPU environments and Docker.
PostgresML use cases
- Data Engineers can automate document chunking and embedding directly in SQL to build scalable search applications.
- Backend Developers can implement real-time sentiment analysis or summarization without managing separate ML microservices.
- MLOps Teams can scale model deployments to handle millions of requests by leveraging GPU-accelerated horizontal scaling.
PostgresML features
- gpu-accelerated inference
- horizontal scalability
- nlp task functions
- 47+ classical ml algorithms
- hugging face hub support
- vector search integration
- unified rag pipeline
- in-database ml/ai training
PostgresML pricing
Is PostgresML free? Yes, PostgresML has a free plan, and paid plans start at $4 / user/month.
PostgresML Cloud Free
Free
- Free database provided in seconds
- Access to GPU acceleration
- Integration with state-of-the-art LLMs
- Serverless architecture
- Basic RAG functionality
GitHub Team
$4 / user/month
- Everything in Free plan
- Access to GitHub Codespaces
- Repository rules enforcement
- Multiple reviewers in pull requests
- Draft pull requests
- 3,000 CI/CD minutes per month
- 2GB of Packages storage
- Web-based support
GitHub Enterprise
$21 / user/month
- Everything in Team plan
- Data residency options
- Enterprise Managed Users
- SAML single sign-on
- Advanced auditing and logs
- 50,000 CI/CD minutes per month
- 50GB of Packages storage
- Environment protection rules
PostgresML FAQs
Is PostgresML compatible with my existing PostgreSQL tools?
Yes, as a standard extension, you can connect using psql or any client library like psycopg and use your existing database ecosystem tools.
How does PostgresML improve inference performance?
By running models where the data resides, it avoids the latency of moving data to models, resulting in speeds 8-40X faster than HTTP-based services.
Can I use models from Hugging Face with this tool?
Yes, PostgresML allows you to import and utilize thousands of pre-trained models from the Hugging Face hub for tasks like translation and summarization.
Does PostgresML support vector search?
It integrates with the pgvector extension and provides high-level SQL functions for generating embeddings and performing similarity searches.
What are the prerequisites for self-hosting?
The only requirement is a PostgreSQL database with the pgml extension installed, which can be easily managed using the provided Docker image.
Ratings & reviews
No reviews yet. Be the first to share how PostgresML worked for you.