← Back to Blog
Heroku Postgres Advanced logical replication
Salesforce Integration

Heroku Postgres Advanced logical replication

byBruno Galo · Published on 23 Nov 2026

Available inCatalàEnglishEspañolPortuguês

This is for engineering leads, Salesforce architects and CTOs who run an application on Heroku Postgres, often with Heroku Connect syncing Salesforce into it, and who are planning a move or a real-time feed out of it. In October 2026 Heroku made Heroku Postgres Advanced generally available, and with it a feature Heroku Postgres never offered before: managed logical replication to and from an external PostgreSQL.

The question here is narrow and practical. Does that make leaving Heroku Postgres, or leaving Heroku Connect, easier? Partly. Below is what Heroku shipped, how it works, the limits that decide whether it helps you, and what it leaves exactly as it was. Everything comes from Heroku's own changelog, blog and Dev Center articles, which we re-read on 23 November 2026 and link at the end.

Short answer. On Heroku Postgres Advanced, you can now publish tables to an external PostgreSQL, or subscribe to one, with standard Postgres logical replication managed through the Heroku CLI. That makes a low-downtime move off Heroku Postgres possible, and it lets you stream Heroku Connect's synced tables to a database outside Heroku. It does not replicate schema changes or sequences, and it is not available on Classic plans (Standard, Premium, Private, Shield), so you first need to be on Advanced, and Heroku's Classic-to-Advanced migration tool is currently an offline snapshot. It does not replace Heroku Connect either: Salesforce sync, and every write back to Salesforce, still run through Heroku Connect on Heroku.

What Heroku shipped, and when

Date What Source
6 October 2026 Heroku Postgres Advanced generally available: "decoupled compute and storage, follower pools distributing read load, and logical replication" Dev Center changelog
6 October 2026 Dev Center article "Managed Logical Replication on Heroku Postgres Advanced" published Dev Center
6 October 2026 Heroku's launch post lists "native logical replication for real-time streaming" among its roadmap priorities Heroku blog
12 November 2026 Dev Center's Advanced feature table: Managed Logical Replication supported on Advanced, "Not Supported" on Classic Dev Center
17 November 2026 heroku data:pg:migrate moves a Classic database to Advanced using a snapshot, with the database offline during the copy; streaming migrations are described as upcoming Heroku blog

One inconsistency to note. The launch blog post presents logical replication as a roadmap item, while the changelog and the Dev Center article of the same day describe it as available, with commands and caveats. We take the documentation as the current state, and suggest you confirm it on your own account before you plan around it.

The feature arrives under the "sustaining engineering" model Heroku announced on 6 February 2026, which Heroku described as a focus on "stability, security, reliability, and support". It is a reminder that sustaining mode has not meant no new features for the data products.

How managed logical replication works

Heroku wraps PostgreSQL's own publication and subscription model in CLI commands. You need Heroku CLI v11.11.0 or later. Dev Center's use cases are three: from Advanced to an external Postgres, from an external Postgres into Advanced, and between two Advanced databases.

To replicate from Heroku Postgres Advanced to an external database:

  1. Enable publishing on the source with heroku data:pg:logical-replication:publishing:enable, and wait for the database to finish updating.
  2. Create a publication with heroku data:pg:logical-replication:publications:create, naming specific tables (--table), whole schemas (--schema) or all schemas (--all-schemas).
  3. Get the publisher credentials. Enabling publishing creates a publisher role with replication privileges; the default credential does not have them. Read its connection string with heroku data:pg:credentials:url … -n publisher.
  4. Mirror the schema on the subscriber. Logical replication does not copy table definitions, so export them with pg_dump --schema-only and apply the dump to the target.
  5. Create the subscription on the target with CREATE SUBSCRIPTION … CONNECTION '…sslmode=require' PUBLICATION …. Heroku requires TLS.
  6. Let the initial sync run. Postgres copies existing rows first, then streams changes. Dev Center warns that the initial load of large tables can take significant time.
  7. Monitor with the standard views: pg_stat_replication and pg_replication_slots on the publisher, pg_stat_subscription on the subscriber.

The reverse direction works the same way, with subscribing enabled on the Advanced database. An external publisher has to be configured by hand: wal_level = logical, and enough max_replication_slots and max_wal_senders.

The limits that decide whether it helps

These come straight from Dev Center's caveats, with what each means in practice.

Limit What it means for a migration or a feed
Schema is not copied You create tables, indexes, constraints and views on the target yourself, before subscribing
DDL does not replicate Every CREATE, ALTER or DROP must be applied to both sides. A schema change on one side only can break replication
Sequences do not replicate Values in serial or identity columns arrive, but the sequence position does not. Before cutting over to the target, advance sequences with setval()
Replica identity required Tables need a primary key or unique index for UPDATE and DELETE to replicate
WAL retention A disconnected subscriber keeps WAL on the publisher. Leave it long enough and the publisher's disk fills. Drop unused subscriptions and watch restart_lsn
New tables are not added automatically A publication created with --all-schemas does not pick up tables created later

The WAL point is the one that bites in production. It is the same replication-slot risk we describe for self-hosted change data capture in managed CDC vs self-hosted Debezium: a slot that nobody is reading is a disk that is slowly filling.

What it changes if you are leaving Heroku Postgres

Before Advanced, the usual way off Heroku Postgres was a dump and restore, with the application stopped for writes while the copy ran. With logical replication, the target can catch up while the application keeps writing to Heroku, and the cutover becomes a short pause: stop writes, let the subscriber catch up, advance the sequences, repoint the application.

The catch is the starting point. Logical replication is an Advanced-only feature. If your database is on a Classic plan, you have to move it to Advanced first, and today Heroku's tool for that, heroku data:pg:migrate, uses a snapshot: writes stop, the data is copied, and the downtime grows with the size of the database. Heroku says streaming migrations are coming, but gives no date. So for a Classic database, logical replication shortens the second hop, not the first.

You are on To leave Heroku Postgres today
Classic (Standard, Premium, Private, Shield) Dump and restore, or first a snapshot migration to Advanced, then logical replication out. Both involve a write stop
Advanced Logical replication to the target, then a short cutover

For Private and Shield databases, Heroku also offers streaming data connectors, which send change events to Apache Kafka on Heroku in the same Private Space. That is a CDC feed inside Heroku, not a replica in another database, and it is a different tool for a different job.

What it changes if you are leaving Heroku Connect

Heroku Connect syncs Salesforce with Heroku Postgres, and only with Heroku Postgres. Logical replication does not change that. What it adds is a way to get the synced data out.

Heroku lists Heroku Connect among the features supported on Advanced. So a team can keep Heroku Connect running on an Advanced database and publish its synced tables to a PostgreSQL elsewhere, for an application or a reporting copy that runs outside Heroku. That is useful, with three caveats:

  • It is one-way, and read-only for sync purposes. Rows written into the external copy never reach Salesforce. Writes to Salesforce still have to go into the Heroku database, where Heroku Connect's trigger log picks them up.
  • Mapping changes are schema changes. When you add a field to a Heroku Connect mapping, the column is added on the Heroku side, and Heroku's documentation describes the backfill job this starts. DDL does not replicate, so the same column has to be added on the subscriber, in step.
  • Heroku Connect is still in the path. Its polling latency, its plan and its contract remain. Leaving Heroku Connect still means replacing the sync itself, with a managed platform such as Stacksync or a custom pipeline on Salesforce Change Data Capture, as we set out on our Heroku Connect migration page.

Where it does help a Heroku Connect exit is the parallel run. While a new sync is being built, logical replication can keep a copy of today's Heroku Connect tables beside the new sync's tables in the target database, which makes row-by-row comparison simpler. That is a design choice to test, not a documented pattern.

What it does not change

  • Salesforce sync. Nothing about how data moves between Salesforce and Postgres. That is still Heroku Connect, Stacksync, a CDC pipeline or an ETL tool.
  • Your Salesforce API budget. Replication happens between databases and does not call Salesforce.
  • The application move. Moving the database is one track. Moving dynos, add-ons and configuration is another.
  • Conflict handling. Logical replication streams changes from a publisher to a subscriber. It is not a two-way sync, and it does not resolve edits made on both sides.

If what you need is two-way sync between Salesforce and a PostgreSQL outside Heroku, see Salesforce and PostgreSQL real-time sync. If what you need is a change feed from Postgres into a warehouse or Kafka, the trade-off between a managed service and running Debezium yourself still applies, as does our build vs buy analysis for a Heroku Connect replacement.

What we could not confirm

  • Whether logical replication is fully available on every Advanced database today. The changelog and Dev Center say yes; Heroku's launch post lists it as a roadmap priority. Check your own account.
  • Whether the tables Heroku Connect creates always meet the replica-identity requirement for UPDATE and DELETE. Check each mapped table for a primary key or unique index before relying on it.
  • How Heroku Connect behaves on a database moved from Classic to Advanced with heroku data:pg:migrate. Dev Center lists Heroku Connect as supported on Advanced; we have not seen documentation of that specific path.
  • Whether logical replication changes the price of an Advanced database. We did not find pricing for it.
  • A date for Heroku's streaming migrations from Classic to Advanced. Heroku calls them upcoming.

Where Atypical Tech fits

We are an integration engineering firm in Spain and a Stacksync partner. We plan and run moves off Heroku Connect and Heroku Postgres: mapping inventories, parallel runs, cutovers object by object, and the replacement sync, whether on Stacksync or a custom CDC pipeline. See our Heroku Connect migration service and how we deliver Stacksync.

Frequently asked questions

Does Heroku Postgres support logical replication?

Yes, on Heroku Postgres Advanced, generally available since 6 October 2026. Dev Center documents managed logical replication to and from external PostgreSQL databases and between Advanced databases, set up through the Heroku CLI. Classic plans, which include Standard, Premium, Private and Shield, are listed as not supported.

Can I use logical replication to migrate off Heroku Postgres with no downtime?

With very little downtime, if your database is already on Advanced: the target catches up while the application runs, and the cutover is a short write stop. You must still advance sequences with setval() before switching, because sequence positions do not replicate. If you are on a Classic plan, moving to Advanced first currently uses an offline snapshot migration.

Does logical replication replace Heroku Connect?

No. Logical replication copies rows between PostgreSQL databases; it does not talk to Salesforce. Heroku Connect, or a replacement such as Stacksync or a custom Change Data Capture pipeline, is still what moves data between Salesforce and Postgres. Logical replication can only stream Heroku Connect's synced tables onward to another database.

Can I keep Heroku Connect and run my application on Amazon RDS?

Partly. You can keep Heroku Connect on an Advanced database and replicate its tables to RDS for reading. Anything your application writes that must reach Salesforce still has to be written into the Heroku database, because that is where Heroku Connect's trigger log lives. For two-way sync with a database outside Heroku, you need to replace Heroku Connect.

What are the main limits of Heroku's logical replication?

Schema and DDL changes do not replicate, sequences do not replicate, and tables need a primary key or unique index for updates and deletes. A disconnected subscriber makes the publisher retain WAL, which can fill its disk. Publications created for all schemas do not include tables added later.

Do I need Debezium or Kafka for change data capture from Heroku Postgres?

Not any more, if a PostgreSQL subscriber is what you need: logical replication on Advanced does that directly. If you need change events in Kafka or a warehouse, you still need a CDC tool or Heroku's streaming data connectors, which send changes to Apache Kafka on Heroku in a Private or Shield Space.

Planning a move off Heroku Postgres or Heroku Connect?

Bring your database plan and your Heroku Connect mappings, and we will tell you which parts logical replication can carry and which need a new sync.

Book a 30-min call · 30 minutes · No commitment · English, Spanish, Portuguese and Catalan

About the author

Bruno Galo is the founder of Atypical Tech, an integration engineering firm in Spain that connects NetSuite with CRMs, e-commerce platforms and the rest of a mid-market company's systems. Atypical Tech is a Celigo and Stacksync partner.

LinkedIn: https://www.linkedin.com/in/brunogd

Sources

All checked on 23 November 2026.

Comments

No comments yet.

Leave a comment

Your comment will be reviewed before publishing.

An unhandled error has occurred. Reload 🗙