pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Rhys A.D. Stewart <rhys.stewart@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Moving large table between servers: logical replication or postgres_fdw
Date: Tue, 4 Dec 2018 23:05:38 -0700
Message-ID: <7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com> (raw)
In-Reply-To: <CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com>
References: <CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com>



> On Dec 4, 2018, at 8:14 PM, Rhys A.D. Stewart <rhys.stewart@gmail.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 :)



view thread (7+ messages)  latest in thread

Message-ID: <7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com>
Permalink:  ../7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com/
Also on:    postgresql.org/message-id/7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, rhys.stewart@gmail.com
  Subject: Re: Moving large table between servers: logical replication or postgres_fdw
  In-Reply-To: <7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com>
  References: <CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com> <7DD54254-62D2-4A7E-8A0A-0F57D7BC6DA1@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox