Heroku Postgres Advanced lets you experience massive scale allowing 200TB+ storage capacity and a proven 4X performance boost during initial tests
PostgreSQL as a Service from Heroku
Heroku Postgres is a managed PostgreSQL database service that delivers the world’s most advanced open source database as a trusted, secure, and scalable service that is optimized for developers. Using Heroku’s PostgreSQL as a service, developers can build engaging, data-driven apps while relying on our expertise and fully managed platform to build, operate, secure, and validate compliance for their data stack.
View Docs Heroku Postgres Plans
Why Heroku Postgres?
Heroku’s operational experience applied to data
Heroku’s expertise comes from running Postgres in the cloud for over 12 years and operating millions of data stores today. We have engineers on call to help debug and restore with 24x7x365 support, as well as product managers engaged in your use cases and needs. This frees you to focus on delivering more value from your data while our managed PostgreSQL experts take care of uptime, maintenance, and performance.
Scale on demand
Peaks and valleys in demand are business as usual for data-driven apps. With Heroku Postgres, handling them is simple. Our managed PostgreSQL fleet responds swiftly to your apps’ changing traffic patterns, seamlessly scaling up and down according to your database resource requirements.
Do more with your data
As a comprehensive postgreSQL as a service, Heroku Postgres allows you to focus on getting the most out of your data without the admin overhead. Follower instances and database forks turn your data into an agile resource that’s available for safe experimentation with alternative use cases. Instances dedicated to analytics, new data strategies, development instances, and data warehousing are ready to go in just a few clicks.
Secure & compliant
The Heroku platform is built for security from the ground up in compliance with key industry standards for data protection. For apps in regulated industries, Heroku Shield Postgres delivers PCI and HIPAA compliance. As threats evolve, our DevOps team takes care of patching and security configuration so you can focus on building your app. Where data is particularly sensitive, you can bring your own encryption key to ensure its safety.
See Heroku Postgres in Action
Managed database as a service tools to unleash your data
Forks
Forking a database is just like forking source code. Perfectly clone your database with a single command. Test new schema migrations by simply forking your production database and running the new migrations against the fork. Load test by forking and running your testing environment against it.
Followers
Followers are read-only replicas of your databases that stay up-to-date with changes and can be queried. Traditionally, setting up and maintaining replication is a difficult and specialized task. But with followers, it just works. Followers provide horizontal scalability by distributing database read traffic.
Dataclips
Sharing data insights doesn’t have to involve complex dashboards or analytics tools. Using Dataclips, anyone on your team who’s familiar with SQL can easily create reports against live production data, and securely share the results with anyone using a unique URL.
Trusted data integration
Heroku’s managed database as a service can serve as the heart of a multi-cloud architecture. Move data securely between Postgres and resources in AWS via PrivateLink or between public clouds and private data centers with mutual TLS. Sync data seamlessly with Salesforce using Heroku Connect.
Managed PostgreSQL for Data security & protection
Continuous protection
Heroku Postgres automatically ensures data integrity with our unique continuous protection feature. Every write is automatically replicated to highly-durable storage in multiple data centers. Should a failure happen, rebuilding a live database takes minutes.
Straightforward rollbacks
A dropped table or failed migration needn’t be a disaster. With a single command, the rollback feature allows you to create a new database instance that’s restored from a point before the problem occurred.
Automated health checks
Heroku’s automated health checks monitor your databases around the clock, with the status of the entire fleet under the eyes of our managed PostgreSQL experts. When an issue arises, our automated processes restore your database to health.
High availability
Maintain high availability of your data with Heroku Postgres Premium, Private, and Shield plans. Should your database instance become unavailable, Heroku Postgres automatically replaces it with a standby.
Security and compliance
At Heroku, trust is our number one value. To further strengthen our trust with customers, we regularly perform audits and maintain PCI, HIPAA, ISO, and SOC compliance.
Data encryption
Encrypt data using your own key to ensure that you control who has access. You can block access from anyone, at any time, by revoking the key, giving you full control and custody of your sensitive data.
Heroku Postgres via mutual TLS
You can seamlessly integrate Heroku Postgres in a Private or Shield Space with external resources running in public clouds and private data centers over a mutually-authenticated, secure, and compliant mutual TLS connection.
Heroku Dataclips
“Heroku’s expertise with Postgres and Redis means that we can take on more customers without having to pause and think about how to handle the increase in demand on our data layer.”
Heroku Postgres FAQs
What is Heroku Postgres?
Heroku Postgres is a fully managed, scalable, and secure SQL database-as-a-service (DBaaS) based on the open-source PostgreSQL. It handles the heavy lifting of database administration, such as patching, failover, and backups, so developers can focus on building applications rather than managing infrastructure. It integrates seamlessly with the Heroku platform and supports a wide range of use cases from development to enterprise-scale workloads.
How do I migrate my existing database to Heroku Postgres?
Heroku provides standard tools to make migration straightforward. You can use the pg_dump and pg_restore utilities to import data from any standard Postgres database. Learn more in our guides on migrating to Heroku Postgres.
For moving data between Heroku databases, the Heroku PGBackups service offers simple commands to copy and restore data. We also support data replication tools for minimizing downtime during large migrations.
Which versions of PostgreSQL does Heroku support?
Heroku Postgres supports each major version after testing for compatibility with the platform. Our currently supported versions are listed here.
We regularly update our support to align with the PostgreSQL community release cycle, ensuring you have access to the latest features and security improvements.
How does Heroku handle major version upgrades for Postgres?
Heroku makes upgrading the major Postgres version of a Heroku Postgres database simple and safe. You can initiate an upgrade at any time using the pg:upgrade command. This automated process provisions a new database with the newer Postgres version and transfers your data to it with minimal downtime. This allows you to stay current with the latest Postgres features and performance improvements on your own schedule.
Is my data secure on Heroku Postgres?
Yes. Heroku Postgres includes default security features such as Continuous Protection and encryption-at-rest on all supported plans. For regulated industries requiring higher compliance (such as PCI or HIPAA), Heroku Shield Postgres offers additional isolation, strict SSL enforcement, and keystroke logging to meet rigorous enterprise standards.
Is Heroku Postgres suitable for applications that require PCI or HIPAA compliance?
Yes, Heroku Postgres is suitable for applications that require PCI or HIPAA compliance. For applications in regulated industries, Heroku Shield Postgres provides the additional security features and controls necessary for building HIPAA and PCI-compliant applications. This includes strict SSL enforcement, data encryption at rest with customer-managed keys, and network isolation within a Shield Private Space.
Does Heroku Postgres support high availability (HA)?
Yes, Heroku Postgres supports high availability (HA). For production applications that require maximum uptime, Heroku offers Premium and Shield plans that include High Availability (HA). When HA is enabled, Heroku automatically provisions a standby database replica in a physically separate availability zone. If the primary database fails or becomes unreachable, Heroku automatically fails over to the standby, ensuring your application stays online.
Can I sync data between Heroku Postgres and Salesforce?
Yes, you can easily sync data between Heroku Postgres and Salesforce using Heroku Connect, a powerful, bidirectional data synchronization service designed specifically for this purpose. It virtualizes Salesforce data into Postgres tables, eliminating the need for fragile ETL pipelines or complex API middleware. Updates flow bidirectionally in near real-time without custom code.
Heroku Connect offers several distinct advantages over custom API integrations or third-party ETL tools:
- API limit exemptions: Data synchronization via Heroku Connect (using SOAP and Bulk APIs) does not count toward your Salesforce organization’s daily API request limits, allowing you to sync massive datasets without worry.
- Zero maintenance: It is a fully managed service configured with a simple point-and-click UI, eliminating the need to write, host, and patch custom integration code.
- Performance: By leveraging Salesforce’s streaming APIs and native integration, Heroku Connect provides high-throughput, near real-time synchronization that is difficult to achieve with standard polling methods.
Can I use PostgreSQL extensions with Heroku Postgres?
Yes, Heroku Postgres supports a wide variety of PostgreSQL extensions, including PostGIS for geospatial data, pg_stat_statements for performance monitoring, pgcrypto for hashing and encryption, and pgvector for AI/ML vector search capabilities.
You can enable most of these extensions directly on your database using the standard CREATE EXTENSION command. To learn more about how to install, manage, upgrade, and remove extensions, please see our documentation in the Heroku Dev Center.
Can I use Heroku Postgres for AI applications with vector search?
Yes, you can use Heroku Postgres for AI applications with vector search. Heroku Postgres supports the open-source pgvector extension, which allows you to store, index, and query vector embeddings directly within your database. This turns Heroku Postgres into a powerful vector database for building AI-driven applications, such as semantic search engines, Retrieval-Augmented Generation (RAG) workflows, recommendation systems, and chatbots powered by Large Language Models (LLMs).
Deploy your Application in Minutes
Get the tools and support your need to deploy, scale, and deliver your app to the world.