Re: Moving large table between servers: logical replication or postgres_fdw

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Moving large table between servers: logical replication or postgres_fdw
Date: 2018-12-05 06:17:49
Message-ID: 15379d46-03ed-39b5-8060-6a8f88348680@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2018-12-05 06:23:04 Re: Moving large table between servers: logical replication or postgres_fdw
Previous Message Rene Romero Benavides 2018-12-05 06:13:57 Re: Moving large table between servers: logical replication or postgres_fdw