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 1fpBzz-00054a-1z for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 12:31:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpBzw-0003oY-UD for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 12:31:00 +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 1fpBzw-0003oR-M7 for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 12:31:00 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpBzn-0004rA-Lh for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 12:31:00 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D75785F79C; Mon, 13 Aug 2018 08:30:50 -0400 (EDT) Date: Mon, 13 Aug 2018 08:30:50 -0400 From: Stephen Frost To: Phil Endecott Cc: pgsql-general@lists.postgresql.org, Adrian Klaver Subject: Re: Replication failure, slave requesting old segments Message-ID: <20180813123050.GC3326@tamriel.snowman.net> References: <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com> <1534162725842@dmwebmail.dmwebmail.chezphil.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0uCeA/GhJk5vQd80" Content-Disposition: inline In-Reply-To: <1534162725842@dmwebmail.dmwebmail.chezphil.org> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0uCeA/GhJk5vQd80 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Phil Endecott (spam_from_pgsql_lists@chezphil.org) wrote: > 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 f= or > >a fast moving cluster or slow moving one with sufficient downtime that > >would not be the case. >=20 > Can you explain how it can fail in the case of a "slow moving cluster with > sufficient downtime"? I'm guessing 'sufficient downtime' here is, basically, 'offline until the next checkpoint', which isn't actually all *that* much time. > 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. Well, it's not like it'd work without WAL archiving either, though that's perhaps more obviously true. Thanks! Stephen --0uCeA/GhJk5vQd80 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbcXn6AAoJEO1sijiDR2RVsVAP/iLCm5aTjR2JXlwLW3bi8Tx1 eVslq9CyWJGxxhcbbnd3x7LiuP3e6NJyRR5rRVBTGRYsXufhiL6XfCrjRE1zXuSf 1pwkUizNWWJ/cnbpxKLbp4HggxJMYkaahqTjekd0P/Clg1FJ4wfvQfMuYhHEx32L HJ4qxk1XZ1ewzrk2X9encjSnHg6SSv+zF8VoddRLDD6L5GelFe2GHb7ObpFnZZxR s8ekXh2qhg59RhWCY4G0kXYXYEKDBUAfZXm3x/ztmAF1s2juJbqyEnA9a2bfwMnq T9rFO3AAsdjTgQrmQ2l/9JVzK/qW/FaXszpFsamm9BEQEF0XWTAHvEVu6U526+2/ vngyAMmywcqZ2lhZUVoOzbbXGYnLIyEV9d40Y8b/XYKaL45MUMxqW7+5yjN3sZuA 4dFuufobuKZ2x6nziEZG5TsS75OSUf/UQrcRxKktJnMgivZPtbs0YD7tRHhHeSBS o2AZ17h81Qr+YUD5ZW0uLEZk7t5aaRsImFY/Pi1M6bAe85+KRDDLNo5ccIvWT962 Kq1Oiovo6WFuAohRT8EzErrTeovpynJh1jEnDoc5mTMJuoh6aePJZQTu+SpTDHM8 s22HDIzxvz6wjvB/e6QyEzcrTVs8tfAI5tIQDNxCh/V+ukgPEs3VgabbhdAsgGqe WAHXpeQmRxPKMTBLQ7G5 =fiuN -----END PGP SIGNATURE----- --0uCeA/GhJk5vQd80--