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 1fpBoC-0004Qm-JQ for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 12:18:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpBoA-0008HO-C4 for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 12:18:50 +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 1fpBoA-0008HH-4R for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 12:18:50 +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 1fpBo7-0004XV-GH for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 12:18:49 +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=cOAX7O91hZvm/IInf4znqcWiNVrfdOzDmyU5uNF1Sto=; b=MOEEL9zQw+Okv4FdKrgs+Gy8S 4sWutKUf2t47J4eu4hSn/KTIJj03f6rK6kMlxs66XPh7Qch6SmYOik7pFuPDAt+TtcKES2TUVh7sV BboNxWJwl+jttq/0asWc9rR7jzKEOxG8w76qelVaWhBgXftVQwBP4PJplpD40P2ygpfrg=; Received: from localhost ([127.0.0.1] helo=chezphil.org) by tonga.chezphil.org with esmtp (Exim 4.89) (envelope-from ) id 1fpBo6-0001g4-2V for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 13:18:46 +0100 Received: from localhost ([::ffff:127.0.0.1]) by tonga with smtp (dmsmtpd 0.00001); Mon, 13 Aug 2018 13:18:46 +0100 To: Cc: "Adrian Klaver" , "Stephen Frost" Date: Mon, 13 Aug 2018 13:18:45 +0100 Subject: Re: Replication failure, slave requesting old segments Message-ID: <1534162725842@dmwebmail.dmwebmail.chezphil.org> In-Reply-To: <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com> References: <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com> 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 Adrian Klaver wrote: > On 08/12/2018 03:54 PM, Stephen Frost wrote: >> Greetings, >> >> * Phil Endecott (spam_from_pgsql_lists@chezphil.org) wrote: >>> OK. I think this is perhaps a documentation bug, maybe a missing >>> warning when the master reads its configuration, and maybe (as you say) >>> a bad default value. >> >> If we consider it to be an issue worthy of a change then we should >> probably just change the default value, and maybe not even allow it to >> be set lower than '1'. >> > > I would say leave the default at 0 as it leaves no doubt that you are > performing without a net. A setting of '1' implies you are covered and > for a fast moving cluster or slow moving one with sufficient downtime > that would not be the case. Can you explain how it can fail in the case of a "slow moving cluster with sufficient downtime"? It seems to me that if I have correctly understood what happened in this case then 0, the default, really cannot ever work properly when you have enabled WAL archiving plus streaming. > Better to let the end user know this is not > a simple problem and some thought needs to go into configuration. I certainly agree that this is "not a simple problem", having read something like 18,000 words of documentation multiple times and, apparently, still got it wrong in multiple ways. Regards, Phil.