Re: Streaming replication with sync slave, but disconnects due to missing WAL segments

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Streaming replication with sync slave, but disconnects due to missing WAL segments
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B17B9AA24@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Streaming replication with sync slave, but disconnects due to missing WAL segments  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: Streaming replication with sync slave, but disconnects due to missing WAL segments  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
Jeff Janes wrote:
> On Tue, Jun 4, 2013 at 6:25 AM, <Mads.Tandrup@schneider-electric.com> wrote:
>> I have a question about sync streaming replication.
>> 
>> I have 2 postgresql 9.1 servers set up with streaming replication. On the
>> master node the slave is configured as a synchronous standby. I've verified
>> that pg_stat_replication shows sync_state = sync for the slave node.
>> 
>> It all seems to work fine. But I have noticed that sometimes when I restore
>> backups created by pg_dump. The slave node will disconnect with the message
>> in the postgresql log:
> 
> You cannot use pg_dump to set up a database for receiving streaming replication.
> 
> For that it must be a physical copy, not a logical copy which is what pg_dump generates.

I think you misunderstood - he restores a dump on
the *primary* and that makes replication fall over
because it cannot catch up.

Yours,
Laurenz Albe

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

Предыдущее
От: 任洪彩
Дата:
Сообщение: Re: How to modify dump files created by pg_dump
Следующее
От: Panneerselvam Posangu
Дата:
Сообщение: Synonyms in PostgreSQL 9.2.4