Moving large table between servers: logical replication or postgres_fdw - Mailing list pgsql-general

From Rhys A.D. Stewart
Subject Moving large table between servers: logical replication or postgres_fdw
Date
Msg-id CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com
Whole thread Raw
Responses Re: Moving large table between servers: logical replication or postgres_fdw
Re: Moving large table between servers: logical replication or postgres_fdw
Re: Moving large table between servers: logical replication orpostgres_fdw
List pgsql-general
Greetings Folks,

I have a relatively large table (100m rows) that I want to move to a
new box with more resources. The table isn't doing anything...i.e its
not being updated or read from. Which approach would be faster to move
the data over:

  a). Use pg_fdw and do "create local_table as select * from foreign_table".
  b). setup logical replication between the two servers.

Regards,

Rhys
Peace & Love|Live Long & Prosper


pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: psql is hanging
Next
From: Gavin Flower
Date:
Subject: Re: simple division