Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flqUs-0006EL-JE for pgsql-general@arkaria.postgresql.org; Sat, 04 Aug 2018 06:57:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flqUq-00074S-3M for pgsql-general@arkaria.postgresql.org; Sat, 04 Aug 2018 06:57:04 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flqUo-00074L-Bq for pgsql-general@lists.postgresql.org; Sat, 04 Aug 2018 06:57:03 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flqUk-0005yp-O8 for pgsql-general@lists.postgresql.org; Sat, 04 Aug 2018 06:57:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 743FF21924; Sat, 4 Aug 2018 02:56:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 04 Aug 2018 02:56:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=C2WHR/KtXUWdieJujvs6so/XbMYtON+wVoqhFBtkSPg=; b=wPnkK9E9 zC/zJdQQsWlnKKqzbs3s75A9cibxsQcModxpZXhtEROgyDzCUOvVNhXxWwJ/m/xt 2yLjUnCbx25wRc7PDoX4/5IvZ6dCVHrGUKWIwl3TVDo9AAZyo6N3LNLYp4xhwq0+ afHeUI5zMnVESQYOfIih6U4kFplG9XWSdrAp4RbEYi8TY0Nex0PZuoLZt+/I0Qr3 fGTjb3IFXuxo654pGGHuinY2nmQVx0tE1+ZT6byY6oro5RgMU6c70oW1YCFMQDrh n7x+CzZsi0rFTOfvYOARuChxSHw/qllE2Bv2ILXfAk/sPj2DMLRFiSIxaFvoTg/k oP5fNX+YW7REbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=C2WHR/KtXUWdieJujvs6so/XbMYtO N+wVoqhFBtkSPg=; b=tVHcx/yYaIhfcqlnXWsc1tw6GTCMvkP1V5MdXUFYaHOXb 62cXwwFWoG+pKgJwfTZv9v3G5UX3aUV97yrBLn7ANXRefYikfS8RFttEo6vNT6cJ hzZpkNtCJ9YJyppDaIu5/wNDqaCyTRiwULms1wcOFMfyOycqdg2Gd/Q2S7+OVcsE awVTYXibpV52JCwt6EH0uhUu+o4xyJs0ovuzmJv3EovUvP/zZSRlT0qfycCIUYoq lGiivZmgl8ZlljcCT67zJyMuqBEk8vU0Zt9vlGKmA9hirrAbvDaelL5mOXEE1mi6 CugHLDyucfPMAjmgu63HKdxgpT40D9Xn3Z6rASY9w== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (lfbn-ann-1-147-30.w86-200.abo.wanadoo.fr [86.200.114.30]) by mail.messagingengine.com (Postfix) with ESMTPA id 44478E405A; Sat, 4 Aug 2018 02:56:56 -0400 (EDT) Date: Sat, 4 Aug 2018 15:56:54 +0900 From: Michael Paquier To: Simon Riggs Cc: Richard Schmidt , "pgsql-general@lists.postgresql.org" Subject: Re: Pg_rewind cannot load history wal Message-ID: <20180804065654.GF20967@paquier.xyz> References: <20180803205922.GC20967@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9ADF8FXzFeE7X4jE" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9ADF8FXzFeE7X4jE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 04, 2018 at 07:44:59AM +0100, Simon Riggs wrote: > I think the problem is that writing the online checkpoint is deferred > after promotion, so this is a timing issue that probably doesn't show > in our regression tests. Somewhat. It is a performance improvement of 9.3 to let the startup request a checkpoint to the checkpointer process instead of doing it itself. > Sounds like we should write a pending timeline change to the control > file and have pg_rewind check that instead. >=20 > I'd call this a timing bug, not a doc issue. Well, having pg_rewind enforce a checkpoint on the promoted standby could cause a performance hit as well if we do it mandatorily as if there is delay between the promotion and the rewind triggerring a checkpoint could have already happen. So it is for me a documentation bug first regarding the failover workflow, and potentially a patch for a new feature which makes pg_rewind trigger directly a checkpoint. -- Michael --9ADF8FXzFeE7X4jE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAltlTjYACgkQnvQgOdby QH3uUw//TPnchUMk51WVyRrJBU4al8oGScoupu8LgrchBjbPAaxQx2NjyIO+yVCo xeNW1Gcz7vGvwMvTuHrUHKTBp+yJlQxKtqfIzcKbSylkyz07IiuK5X61e7+le4sG Jx8AMQ3cMzFO+qnvPDgWIYoLalXKLPX/JRCikEUuJtUJzpfQgp3QUG9FzWR0QT18 xs6Jp6Lm3nyTk0EKHLdc3fzu9PNGg2UmFoc1DquvwNyUZFEhz69oYud7hAiLYb1X 0AA85nOmEsjJSUNSpvkw0adCwe8REo88t0CcADNhn1Rf9s63VHqmh4zf6xM3b4c1 yA2cfJkYbm7zD8PFPCUKJTxuk4/CEHDw3emgB6WDt2h6/pcPj2YyhqAE7+flIwkr iY8Rl/ZssAiltjnbPnEKXSy+0iLWGShcKX2MC52M8Hje+Bq96SUSuHDWX8Bf0fzz XP5Hv5qL/egGpzwGC2Jou/CuoYlr0q5xubUo0Bwkw37aUo1eQIF4pnK4krfbufLA cevI1qFI/6AXhSxz+foseULCaq3hEinGQ8tQAlK7TGr4acsnTVxL1Q3s73CwgcyX SrAniMqBWYTvNZcOrtCZe0FDDYqtawcwEmrYFgy7Ej/iW+9r1NpspJgD+ahEsT9m 2FGiXTzl9UGsx41V1np7tgF5zK8CTSTNqS7BYvkj7HP/cqPeZ9w= =uXco -----END PGP SIGNATURE----- --9ADF8FXzFeE7X4jE--