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 1foZmE-0003Vt-BG for pgsql-general@arkaria.postgresql.org; Sat, 11 Aug 2018 19:42:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1foZmA-0003ZF-OZ for pgsql-general@arkaria.postgresql.org; Sat, 11 Aug 2018 19:42:14 +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 1foZmA-0003Z8-G3 for pgsql-general@lists.postgresql.org; Sat, 11 Aug 2018 19:42:14 +0000 Received: from tonga.chezphil.org ([163.172.168.227]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1foZm3-0006D1-70 for pgsql-general@lists.postgresql.org; Sat, 11 Aug 2018 19:42:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chezphil.org; s=20171026; h=From:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Date:Cc:To:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PAZMvaTCRlBiaLjV4HVBmkbEme4p5GHekUV4riywaa4=; b=PBMY3yLa878ApJ+J3YZwTQBok uCmalUckNcIMX29YD4FG7uRp0vWR9mHE0kE+o5cXiC0T37PoYsHlJKUyPpOTlUPFKPsO8rIYyEr+u dS9Ys66EazcZkA1jOJW8wzWUoVl+PHfyBFnkrrpB1v5NmQy2JvZcJCbnpvF/2BCVSSjeo=; Received: from localhost ([127.0.0.1] helo=chezphil.org) by tonga.chezphil.org with esmtp (Exim 4.89) (envelope-from ) id 1foZm1-00030k-Af for pgsql-general@lists.postgresql.org; Sat, 11 Aug 2018 20:42:05 +0100 Received: from localhost ([::ffff:127.0.0.1]) by tonga with smtp (dmsmtpd 0.00001); Sat, 11 Aug 2018 20:42:05 +0100 To: Cc: "Adrian Klaver" Date: Sat, 11 Aug 2018 20:42:05 +0100 Subject: Re: Replication failure, slave requesting old segments Message-ID: <1534016525090@dmwebmail.dmwebmail.chezphil.org> In-Reply-To: References: X-Mailer: Decimail Webmail 3alpha16 MIME-Version: 1.0 Content-Type: text/plain; format="flowed"; charset="UTF-8" From: "Phil Endecott" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Adrian, Adrian Klaver wrote: > Looks like the master recycled the WAL's while the slave could not connect. Yes but... why is that a problem? The master is copying the WALs to the backup server using scp, where they remain forever. The slave gets them from there before it starts streaming. So it shouldn't matter if the master recycles them, as the slave should be able to get everything using the combination of scp and then streaming. Am I missing something about how this sort of replication is supposed to work? Thanks, Phil.