pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: pg_basebackup or dump for starting replication process
Date: Fri, 06 Apr 2018 08:24:56 +0200
Message-ID: <1522995896.2420.3.camel@cybertec.at> (raw)
In-Reply-To: <1522943144800-0.post@n3.nabble.com>
References: <1522943144800-0.post@n3.nabble.com>

PegoraroF10 wrote:
> For replication purposes only, there are any difference between pg_basebackup
> or dump to copy data from Master to Slave ?
> On Docs is written that pg_basebackup can be used both for point-in-time
> recovery and as the starting point for a log shipping or streaming
> replication standby servers.
> 
> We are using just Dump, there are any caveat of using it for logical
> replication ?

For *logical* replication you can start with a "pg_dump --schema-only",
but for *physical* replication only a pg_basebackup will do.

Make sure that he tables are empty before you start logical replication.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




view thread (2+ messages)

Message-ID: <1522995896.2420.3.camel@cybertec.at>
Permalink:  ../1522995896.2420.3.camel@cybertec.at/
Also on:    postgresql.org/message-id/1522995896.2420.3.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, marcos@f10.com.br
  Subject: Re: pg_basebackup or dump for starting replication process
  In-Reply-To: <1522995896.2420.3.camel@cybertec.at>
  References: <1522943144800-0.post@n3.nabble.com> <1522995896.2420.3.camel@cybertec.at>

* 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