Re: Moving large table between servers: logical replication orpostgres_fdw - Mailing list pgsql-general

From Ron
Subject Re: Moving large table between servers: logical replication orpostgres_fdw
Date
Msg-id 15379d46-03ed-39b5-8060-6a8f88348680@gmail.com
Whole thread Raw
In response to Moving large table between servers: logical replication or postgres_fdw  ("Rhys A.D. Stewart" <rhys.stewart@gmail.com>)
List pgsql-general
On 12/04/2018 09:14 PM, Rhys A.D. Stewart wrote:
> 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.

Or KISS and COPY WITH FORMAT BINARY.

-- 
Angular momentum makes the world go 'round.


pgsql-general by date:

Previous
From: Rene Romero Benavides
Date:
Subject: Re: Moving large table between servers: logical replication or postgres_fdw
Next
From: Ron
Date:
Subject: Re: Moving large table between servers: logical replication orpostgres_fdw