Catalogue / ananthakumaran-2025-postgres-table-move

Moving more than 50 tables between PostgreSQL instances with native logical replication and a PgBouncer pause

Not named in the source, 2025. Move of a set of tables from one PostgreSQL instance to another.

Organisation
Not named in the source
Evidence
Reported from production
Source
Moving tables across PostgreSQL instances

Anantha Kumaran's blog, published 2025-11-02

Records

Decision#d1

Use PostgreSQL's native logical replication to move a subset of tables, since DMS moves only whole databases

Decision#d2

Create destination tables with primary keys only, and add indexes and foreign keys after the initial copy

Decision#d3

Switch the application to the new instance by pausing, reloading and resuming PgBouncer

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.