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 1fpBaW-0003kZ-1H for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 12:04:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpBaU-0001DD-Gw for pgsql-general@arkaria.postgresql.org; Mon, 13 Aug 2018 12:04:42 +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 1fpBaU-00013R-3h for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 12:04:42 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpBaQ-0000So-EL for pgsql-general@lists.postgresql.org; Mon, 13 Aug 2018 12:04:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id CBA485F79E; Mon, 13 Aug 2018 08:04:37 -0400 (EDT) Date: Mon, 13 Aug 2018 08:04:37 -0400 From: Stephen Frost To: Adrian Klaver Cc: Phil Endecott , pgsql-general@lists.postgresql.org Subject: Re: Replication failure, slave requesting old segments Message-ID: <20180813120437.GZ3326@tamriel.snowman.net> References: <20180812212953.GU3326@tamriel.snowman.net> <1534110785010@dmwebmail.dmwebmail.chezphil.org> <20180812225406.GX3326@tamriel.snowman.net> <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LMmSgwdUwKH/sMG1" Content-Disposition: inline In-Reply-To: <2b671d4c-1504-9a38-3ad0-5dafe8fab92c@aklaver.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --LMmSgwdUwKH/sMG1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Adrian Klaver (adrian.klaver@aklaver.com) wrote: > On 08/12/2018 03:54 PM, Stephen Frost wrote: > >* 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'. >=20 > 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 fo= r a > fast moving cluster or slow moving one with sufficient downtime that would > not be the case. Better to let the end user know this is not a simple > problem and some thought needs to go into configuration. Uh, this specific case is where there *is* a 'safety net' though- archive command and restore command were configured and being used, so I don't buy off on this argument at all. Maybe we just internally bump wal_keep_segments to '1' to avoid this specific risk without actually changing the default or making people change their existing configurations, but if this is really what's happening then I don't think the answer is "don't do anything." Thanks! Stephen --LMmSgwdUwKH/sMG1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbcXPVAAoJEO1sijiDR2RV0z4P/Ahxe8c4C4cjQhyG9ITw3v6N 48Wq7oCkM/Dr7mf+MWXE7tzCSgfQf5b0d3dsmSZzEyICfG1s8PWQLQLmtk+e1LaQ U21bTUn0jt9p6C7ff4QbPk2p59nQ8jUzWniSDxFepylhu24AaVGqXoHJABz1t8we ZRhGUK3lTgAiq3iMQ76OGz2E6ICgMOmFAx8d4Mbm2D7DRX6cGmojpbFIt6PMHGUt Z6Bzi+mMf+5jfXovl2/HNDp/ZGS4cuS+tgqNOn2Lkd34lKz0k9FeejX0mwRBgyEI IAt3QenyyufmunK6XrTJLJdtJds6lXIETmETrgUO6TvGMY20+Wzl364QaltLwxhw 5xYNpftEhhNFIEEVUqDCjDzEeB1A1Yd8yPTcRtPErXWi6aSH5srXdNodVhgigJlH 327zGQ0VoDnl82uXaXqqCno0gYRTgRi2fDRSTY98xblcgImONLxdWxpLpLwWBKjn srNqOCG2yNkPMxXQpL1X0wh7oMz2DyU2zblbjz7LveEFiNVmAH4RhRBOamy4Hmti XaWN+nOy+IIAilThUG/tZrA7Vk1Sb8GNae3qsrKhMbIrWEvTZQmTHgt1zWVO7FhQ 9DHA7TTl2C0BYiMWrEcNWs6xJ4g3jTk2PZnMuUK+PSU6JUlIX+gcr3vO2xUdMkuh GP6MmUjOqeaRMftWrL1W =+xLA -----END PGP SIGNATURE----- --LMmSgwdUwKH/sMG1--