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

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Mads(dot)Tandrup(at)schneider-electric(dot)com
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Streaming replication with sync slave, but disconnects due to missing WAL segments
Date: 2013-06-04 18:06:01
Message-ID: CAMkU=1yCrvfHCgckh3qjVE87k1tAZZGOka-n-htm81MAEgPw5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 4, 2013 at 6:25 AM, <Mads(dot)Tandrup(at)schneider-electric(dot)com> wrote:

>
> Hi all
>
> 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.

Cheers,

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Summers 2013-06-04 21:53:04 View's plan not taking advantage of WHERE?
Previous Message Keith Fiske 2013-06-04 16:22:59 Re: Foreign Key violated