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: Question about logically replicating a multi-TB database
Date: Sat, 23 Jan 2021 17:27:50 -0600
Message-ID: <35409a7a-427b-58bd-0975-eb1abc280340@gmail.com> (raw)


https://www.postgresql.org/docs/12/logical-replication-architecture.html

"30.5.1. Initial Snapshot
The initial data in existing subscribed tables are snapshotted and copied in 
a parallel instance of a special kind of apply process. This process will 
create its own temporary replication slot and copy the existing data. Once 
existing data is copied, the worker enters synchronization mode, which 
ensures that the table is brought up to a synchronized state with the main 
apply process by streaming any changes that happened during the initial data 
copy using standard logical replication. Once the synchronization is done, 
the control of the replication of the table is given back to the main apply 
process where the replication continues as normal."

We've got a Large and busy database which we need to migrate to AWS, and a 
shared 1Gbps pipe between the source and AWS.

How does one set up publish/subscribe in such a case?  All the examples I've 
seen are with trivially small databases.

-- 
Angular momentum makes the world go 'round.





view thread (3+ messages)  latest in thread

Message-ID: <35409a7a-427b-58bd-0975-eb1abc280340@gmail.com>
Permalink:  ../35409a7a-427b-58bd-0975-eb1abc280340@gmail.com/
Also on:    postgresql.org/message-id/35409a7a-427b-58bd-0975-eb1abc280340@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: Question about logically replicating a multi-TB database
  In-Reply-To: <35409a7a-427b-58bd-0975-eb1abc280340@gmail.com>
  References: <35409a7a-427b-58bd-0975-eb1abc280340@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