Moving tables across PostgreSQL instances
ananthakumaran.in
Moving tables across PostgreSQL instances
1–6 of 6 posts
Re: Moving tables across PostgreSQL instances
#2Re: Moving tables across PostgreSQL instances
#3I'm in the middle of doing a major version upgrade of postgres from pg15 to pg18 using the same logical replication techniques that this article talks about. As this article mentions, dropping the indexes on the new database before replication is key. Otherwise the replication takes forever because each insert needs to update the index as well.
Re: Moving tables across PostgreSQL instances
#4Re: Moving tables across PostgreSQL instances
#5Re: Moving tables across PostgreSQL instances
#6I'm in the middle of doing a major version upgrade of postgres from pg15 to pg18 using the same logical replication techniques that this article talks about. As this article mentions, dropping the indexes on the new database before replication is key. Otherwise the replication takes forever because each insert needs to update the index as well.
Our old “drop/create” scripts would go 5-10x faster that way, setting up sample data for dev environments.