Re: When pg_rewind success, the database can't startup

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: hemin <min(dot)he(at)ww-it(dot)cn>
Cc: pgsql-bugs(at)postgresql(dot)org, 朱贤文 <tony(dot)zhu(at)ww-it(dot)cn>
Subject: Re: When pg_rewind success, the database can't startup
Date: 2018-06-19 08:00:57
Message-ID: 20180619080057.GE31737@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Jun 19, 2018 at 03:56:15PM +0800, hemin wrote:
> I do not checkpoint before running pg_rewind, because the checkpoint
> of rewound primary node is obviously slow than the promoted standby,
> But I will try it later.

You need to run the checkpoint on the promoted standby. That's actually
a critical thing to do to ensure consistency.. Of course this depends
on how you set max_wal_size.
--
Michael

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message hemin 2018-06-19 08:09:48 Re: When pg_rewind success, the database can't startup
Previous Message hemin 2018-06-19 07:56:15 Re: When pg_rewind success, the database can't startup