Moving tables across PostgreSQL instances
ananthakumaran.in·10h·
Flag this post

At work, we recently had to move a few tables from one PostgreSQL instance to another. In my previous post, I discussed how to use Google’s Database Migration Service (DMS) to migrate data from one instance to another. Unfortunately, that option was not available here, since DMS only allows the migration of an entire database, not specific tables within a database.

We chose the native logical replication option. It’s a much more involved process compared to using DMS, but it provides greater flexibility and allows replication of specific tables only.

Grant access to user accounts

Let’s assume you already have both the source and destination PostgreSQL instances …

Similar Posts

Loading similar posts...