pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: hemin <min.he@ww-it.cn>
Cc: pgsql-bugs@postgresql.org, 朱贤文 <tony.zhu@ww-it.cn>
Subject: Re: When pg_rewind success, the database can't startup
Date: Tue, 19 Jun 2018 17:00:57 +0900
Message-ID: <20180619080057.GE31737@paquier.xyz> (raw)
In-Reply-To: <2454B24E-4FAD-4E90-B9D1-800519B84B18@ww-it.cn>
References: <2454B24E-4FAD-4E90-B9D1-800519B84B18@ww-it.cn>

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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (5+ messages)  latest in thread

Message-ID: <20180619080057.GE31737@paquier.xyz>
Permalink:  ../20180619080057.GE31737@paquier.xyz/
Also on:    postgresql.org/message-id/20180619080057.GE31737@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, min.he@ww-it.cn, tony.zhu@ww-it.cn
  Subject: Re: When pg_rewind success, the database can't startup
  In-Reply-To: <20180619080057.GE31737@paquier.xyz>
  References: <2454B24E-4FAD-4E90-B9D1-800519B84B18@ww-it.cn> <20180619080057.GE31737@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox