pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Moving large table between servers: logical replication or postgres_fdw
Date: Wed, 5 Dec 2018 00:23:04 -0600
Message-ID: <d16ef100-7636-a279-1b5d-54f1b61da5e5@gmail.com> (raw)
In-Reply-To: <CANaGW0-Nri3sdbbPvcKOTo8r2mHPKSF1MShgyL7MxY6HZqr9xA@mail.gmail.com>
References: <CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com>
	<CANaGW0-Nri3sdbbPvcKOTo8r2mHPKSF1MShgyL7MxY6HZqr9xA@mail.gmail.com>

pg_backup/pg_restore will work, but parallel is pointless on a single 
(unpartitioned) table.

On 12/05/2018 12:13 AM, Rene Romero Benavides wrote:
> I tend to believe that a backup (pg_dump) in custom format (-F c) using 
> multiple jobs (parallel) -> restore (pg_restore) also with multiple 
> concurrent jobs would be better.
>
> Am Di., 4. Dez. 2018 um 21:14 Uhr schrieb Rhys A.D. Stewart 
> <rhys.stewart@gmail.com <mailto:rhys.stewart@gmail.com>>:
>
>     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
>
>

-- 
Angular momentum makes the world go 'round.

view thread (7+ messages)  latest in thread

Message-ID: <d16ef100-7636-a279-1b5d-54f1b61da5e5@gmail.com>
Permalink:  ../d16ef100-7636-a279-1b5d-54f1b61da5e5@gmail.com/
Also on:    postgresql.org/message-id/d16ef100-7636-a279-1b5d-54f1b61da5e5@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: ronljohnsonjr@gmail.com
  Subject: Re: Moving large table between servers: logical replication or postgres_fdw
  In-Reply-To: <d16ef100-7636-a279-1b5d-54f1b61da5e5@gmail.com>
  References: <CACg0vTn51RJv03e2hUYKq5nksCuqmSufT=ZdWzyiCaij5Xq3Ww@mail.gmail.com> <CANaGW0-Nri3sdbbPvcKOTo8r2mHPKSF1MShgyL7MxY6HZqr9xA@mail.gmail.com> <d16ef100-7636-a279-1b5d-54f1b61da5e5@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