# Zero-Downtime Postgres Migration from RDS to Prisma Postgres

DevFeed: [Zero-Downtime Postgres Migration from RDS to Prisma Postgres](<https://devfeed.tech/articles/zero-downtime-postgres-migration-from-rds-to-prisma-postgres-100727.md>)

Original publisher: [Read original article](<https://www.prisma.io/blog/moving-prismas-control-plane-to-prisma-postgres>)

Author: Kristof Siket; Ankur Datta

Published: 2026-10-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Prisma](<https://devfeed.tech/sources/prisma-blog.md>)

Topics: [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [Prisma](<https://devfeed.tech/topics/prisma.md>), [RDS for PostgreSQL](<https://devfeed.tech/topics/rds-for-postgresql.md>), [Amazon RDS](<https://devfeed.tech/topics/amazon-rds.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [control-plane](<https://devfeed.tech/topics/control-plane.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2026](<https://devfeed.tech/tags/2026.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [accelerate](<https://devfeed.tech/tags/accelerate.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-rds](<https://devfeed.tech/tags/amazon-rds.md>), [logical](<https://devfeed.tech/tags/logical.md>), [logical-replication](<https://devfeed.tech/tags/logical-replication.md>), [migration](<https://devfeed.tech/tags/migration.md>), [open](<https://devfeed.tech/tags/open.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [prisma](<https://devfeed.tech/tags/prisma.md>), [rds](<https://devfeed.tech/tags/rds.md>), [replication](<https://devfeed.tech/tags/replication.md>), [rollback](<https://devfeed.tech/tags/rollback.md>), [tables](<https://devfeed.tech/tags/tables.md>), [using](<https://devfeed.tech/tags/using.md>), [with](<https://devfeed.tech/tags/with.md>), [zero](<https://devfeed.tech/tags/zero.md>)

## AI overview

Prisma moved its 83-table, 74 GB control-plane database from Amazon RDS to Prisma Postgres without pausing writes. Logical replication copied the tables and then streamed row changes; after checking primary keys, schema parity, network access, and per-table row counts, the team switched all six services in one deployment. The last service write reached RDS seven minutes later. A replication slot created just before cutover let RDS follow Prisma Postgres for a week, enabling rollback by changing the connection configuration. The team used `copy_data = false` and Postgres 16's `origin = none` to avoid recopying rows during reverse replication. The process required matching schemas on both databases because logical replication carries row changes, not DDL or sequence values. One migration initially ran only on Prisma Postgres and stopped the reverse stream until the SQL was applied to RDS; no data was lost.

## Source excerpt

How Prisma migrated 83 tables and 74 GB from Amazon RDS to Prisma Postgres with zero downtime using logical replication, and kept a rollback open for a week.