Re: pg_basebackup or dump for starting replication process

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: pg_basebackup or dump for starting replication process
Дата
Msg-id 1522995896.2420.3.camel@cybertec.at
обсуждение исходный текст
Ответ на pg_basebackup or dump for starting replication process  (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


В списке pgsql-general по дате отправления:

Предыдущее
От: Pavan Deolasee
Дата:
Сообщение: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value76753264 in pg_toast_10920100
Следующее
От: hmidi slim
Дата:
Сообщение: Extract dates of a given day