Search overlay panel for performing site-wide searches

Build Your Next Big Thing on Heroku. Sign Up Now!

A stylized white letter "P" in a square, surrounded by radiating lines on a black background.

Heroku Managed PostgreSQL

SQL database as a service for all developers.

Get Started Now

PostgreSQL as a Service from Heroku

Heroku Postgres provides a fully managed PostgreSQL service across three database tiers: Essential, Classic, and Advanced. Essential tier offers a cost-effective starting point for small projects, proofs of concept, and development apps. Classic and Advanced tiers deliver scalable, high-performance infrastructure for production applications.

Developers can build data-driven applications while relying on Heroku to operate, secure, and manage compliance for their data stack. Heroku removes administrative friction so your team can focus on application development.

View Postgres Docs Heroku Postgres Plans

Heroku’s next-gen managed database is now available for all Heroku users

Heroku Postgres Advanced brings next-generation database infrastructure to all Heroku accounts. Built on high-performance infrastructure with decoupled compute and storage, this fully managed database tier handles all workloads, from everyday applications to your most demanding production systems, with up to 4x higher query throughput.

Database tiers at a glance: Heroku Postgres Advanced vs Heroku Postgres Classic

Postgres Advanced Postgres Classic
Compute & storage Decoupled and independently scalable Coupled in fixed plan sizes
Max storage capacity 100 GB included, scale to 200+ TB Storage limits fixed by plan
Performance Up to 4x higher throughput over Classic tier High-performance throughput
High availability Flexible pool-level failover Tier-wide standby failover
Follower architecture Shared storage instance pools. Up to 5 read-only pools per cluster. Read-only replica

Learn more about Heroku Postgres Advanced

Why Heroku Postgres?

Heroku Postgres removes database management overhead so development teams can focus on building their apps.

Fully managed operations

Heroku takes care of uptime, maintenance, and performance across all database tiers, freeing developers from day-to-day database administration.

Built-in platform integration

Heroku handles the setup, connection management, and credentials automatically when provisioning and attaching databases to apps via the CLI or dashboard.

Decoupled resource scaling

Heroku Postgres Advanced offers flexible resource scaling, letting you adjust compute and storage independently so you only pay for the capacity your app uses.

Database security and compliance

Heroku manages security configurations and patching, supports custom encryption keys, and offers PCI and HIPAA compliance with Heroku Shield Postgres.

See Heroku Postgres in Action

Managed database as a service tools to unleash your data

Forks

Clone your database with a single command to safely support everything from testing schema migrations to running load tests.

Followers

Deploy read-only database replicas that stay up to date automatically, distributing read traffic from your primary database for horizontal scaling.

New – Postgres Advanced

Follower instance pools

Group multiple compute pools on Heroku Postgres Advanced to scale connection limits and query throughput across shared storage.

Postgres extensions

Extend database functionality with supported open source extensions like pgvector for native AI vector search and PostGIS for geospatial data.

Dataclips

Query live production data with SQL, create reports, and share results securely across your team using a unique URL.

Trusted data integration

Connect Postgres to AWS resources via PrivateLink, private data centers using mutual TLS, and sync data with Salesforce using Heroku Connect.

Managed PostgreSQL for Data security & protection

Data encryption

Encrypt data ​using your own key​ to control who has access, and revoke the key at any time to maintain full custody of your sensitive data.

Straightforward rollbacks

Restore your database to a specific point in time using a single Heroku CLI command, recovering from a dropped table or failed migration.

Automated health checks

Heroku monitors your database around the clock, and automated processes restore it to health when an issue arises.

Security and compliance

Heroku maintains PCI, HIPAA, ISO, and SOC compliance through regular audits to protect your sensitive data.

New – Postgres Advanced

Decoupled storage resiliency

Run shared cluster storage up to 200+ TB that stays isolated from compute restarts, configuration updates, and unexpected failures.

High availability

Heroku Postgres Advanced, Premium, Private, and Shield plans automatically replace an unavailable instance with a standby database.

Continuous protection

Heroku Postgres automatically replicates every write to durable storage across multiple data centers, enabling fast database rebuilds should a failure happen.

Heroku Postgres via
mutual TLS

Connect Heroku Postgres in Private or Shield Spaces to external resources over a secure and compliant mTLS connection.

Heroku Dataclips

Logo with a purple hexagon containing a white "K" next to the word "KOLIDE" in black text on a light gray background.

“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.”

Jason Meller

Founder & CEO, Kolide

Heroku Postgres FAQs

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.

Heroku Postgres Advanced is our next generation managed database tier, re-architected on the latest technologies to eliminate scaling limits. It delivers a massive leap in performance and scalability, offering up to 4X faster throughput compared to Classic tier plans, eliminating IOPS bottlenecks during peak traffic, and 200+ TB of storage capacity.

By decoupling compute and storage, it provides unprecedented architectural flexibility, allowing you to scale resources independently to match your application’s specific needs without the constraints of fixed plans.

Decoupling compute and storage gives you complete flexibility to configure your database resources exactly as your workload requires. Unlike traditional plans where resources are bundled, you can now scale storage capacity independently from CPU and memory.

For example, you can provision massive storage with lighter compute for archival systems that hold terabytes of historical data but are rarely queried. Conversely, you can choose high-performance compute with smaller storage for real-time analytics or trading applications that run complex calculations on a small, active dataset. This allows you to optimize costs and performance for your specific architecture.

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.

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.

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.

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.

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.

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.

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.

View Heroku Postgres Plans Sign Up Now