pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_basebackup or dump for starting replication process
2+ messages / 2 participants
[nested] [flat]

* pg_basebackup or dump for starting replication process
@ 2018-04-05 15:45  PegoraroF10 <marcos@f10.com.br>
  0 siblings, 1 reply; 2+ messages in thread

From: PegoraroF10 @ 2018-04-05 15:45 UTC (permalink / raw)
  To: pgsql-general

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 ?



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_basebackup or dump for starting replication process
@ 2018-04-06 06:24  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: PegoraroF10 <marcos@f10.com.br>
  0 siblings, 0 replies; 2+ messages in thread

From: Laurenz Albe @ 2018-04-06 06:24 UTC (permalink / raw)
  To: PegoraroF10 <marcos@f10.com.br>; pgsql-general

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-04-06 06:24 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-05 15:45 pg_basebackup or dump for starting replication process PegoraroF10 <marcos@f10.com.br>
2018-04-06 06:24 ` Laurenz Albe <laurenz.albe@cybertec.at>

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