Re: streaming replication - crash on standby

From: "Seong Son (US)" <Seong(dot)Son(at)datapath(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: streaming replication - crash on standby
Date: 2017-08-09 22:31:23
Message-ID: BY2PR17MB03282B3270332EFDE738227E848B0@BY2PR17MB0328.namprd17.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I see. Thank you.

But the Postgresql process had crashed at that time so the streaming replication was no longer working. Why would it crash and is that normal?

Thanks,

Seong

This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains information that is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

-----Original Message-----
From: Andres Freund [mailto:andres(at)anarazel(dot)de]
Sent: Wednesday, August 09, 2017 6:27 PM
To: Seong Son (US) <Seong(dot)Son(at)datapath(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] streaming replication - crash on standby

Hi,

On 2017-08-09 22:03:43 +0000, Seong Son (US) wrote:
> The last line from pg_xlogdump of the last WAL file on the crashed standby server shows the following.
>
> pg_xlogdump: FATAL: error in WAL record at DF/4CB95FD0: unexpected pageaddr DB/62B96000 in log segment 00000000000000DF0000004C, offset 12148736
>
> I believe this means the standby server received WAL file out of order? But why did it crash? Is crashing normal behavior in case like this?

This likely just means that that's the end of the WAL.

- Andres

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andres Freund 2017-08-09 22:33:40 Re: streaming replication - crash on standby
Previous Message Thomas Munro 2017-08-09 22:26:51 Re: Multixact members limit exceeded