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

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: "Rhys A(dot)D(dot) Stewart" <rhys(dot)stewart(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Moving large table between servers: logical replication or postgres_fdw
Date: 2018-12-05 06:05:38
Message-ID: 7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Dec 4, 2018, at 8:14 PM, Rhys A.D. Stewart <rhys(dot)stewart(at)gmail(dot)com> 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.
>
> Regards,
>
> Rhys
> Peace & Love|Live Long & Prosper
>
Can’t help but think an unread unwritten table goes to quietly to /dev/null :)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2018-12-05 06:13:50 Re: Moving large table between servers: logical replication or postgres_fdw
Previous Message Gavin Flower 2018-12-05 04:33:28 Re: simple division