Moving large table between servers: logical replication or postgres_fdw

From: "Rhys A(dot)D(dot) Stewart" <rhys(dot)stewart(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Moving large table between servers: logical replication or postgres_fdw
Date: 2018-12-05 03:14:15
Message-ID: CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Flower 2018-12-05 04:33:28 Re: simple division
Previous Message Ron 2018-12-05 00:36:28 Re: psql is hanging