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 1flxx8-0003A6-FL for pgsql-general@arkaria.postgresql.org; Sat, 04 Aug 2018 14:54:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flxx6-00069b-BB for pgsql-general@arkaria.postgresql.org; Sat, 04 Aug 2018 14:54:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flxx6-00069T-3I for pgsql-general@lists.postgresql.org; Sat, 04 Aug 2018 14:54:44 +0000 Received: from smtp112.ord1c.emailsrvr.com ([108.166.43.112]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flxx2-00071e-8a for pgsql-general@lists.postgresql.org; Sat, 04 Aug 2018 14:54:43 +0000 Received: from smtp15.relay.ord1c.emailsrvr.com (localhost [127.0.0.1]) by smtp15.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id B2AD620153; Sat, 4 Aug 2018 10:54:37 -0400 (EDT) X-Auth-ID: xof@thebuild.com Received: by smtp15.relay.ord1c.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 3F883200CB; Sat, 4 Aug 2018 10:54:37 -0400 (EDT) X-Sender-Id: xof@thebuild.com Received: from [10.1.10.23] (50-76-33-78-ip-static.hfc.comcastbusiness.net [50.76.33.78]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:587 (trex/5.7.12); Sat, 04 Aug 2018 10:54:37 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Pg_rewind cannot load history wal From: Christophe Pettus In-Reply-To: <20180804131312.GH20967@paquier.xyz> Date: Sat, 4 Aug 2018 07:54:36 -0700 Cc: Andres Freund , Simon Riggs , Richard Schmidt , "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180803205922.GC20967@paquier.xyz> <20180804065654.GF20967@paquier.xyz> <20180804115945.k54bivte737gkicv@alap3.anarazel.de> <20180804131312.GH20967@paquier.xyz> To: Michael Paquier X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Aug 4, 2018, at 06:13, Michael Paquier wrote: >=20 > Well, since its creation we have the tool behave this way. I am not > sure either that we can have pg_rewind create a checkpoint on the = source > node each time a rewind is done, as it may not be necessary, and it > would enforce WAL segment recycling more than necessary, so if we were=20= > to back-patch something like that I am pretty much convinced that we > would get complains from people already using the tool, with existing > failover flows which are broken.=20 Would having pg_rewind do a checkpoint on the source actually cause = anything to break, as opposed to a delay while the checkpoint completes? = The current situation can create a corrupted target, which seems far = worse than just slowing down pg_rewind. -- -- Christophe Pettus xof@thebuild.com