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 1fpEze-0006gm-U0 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Aug 2018 15:42:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpEzb-00051o-Th for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Aug 2018 15:42:51 +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 1fpEzb-00051h-Nj for pgsql-bugs@lists.postgresql.org; Mon, 13 Aug 2018 15:42:51 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fpEzY-00011w-GM for pgsql-bugs@lists.postgresql.org; Mon, 13 Aug 2018 15:42:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A9C1B5F79C; Mon, 13 Aug 2018 11:42:47 -0400 (EDT) Date: Mon, 13 Aug 2018 11:42:47 -0400 From: Stephen Frost To: Andres Freund Cc: Phil Endecott , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15323: wal_keep_segments must be >= 1 for WAL archiving + streaming to work Message-ID: <20180813154247.GO3326@tamriel.snowman.net> References: <20180813144534.piruesukkjw6zl4b@alap3.anarazel.de> <1534172372164@dmwebmail.dmwebmail.chezphil.org> <524A7B69-91A8-4F17-805D-9A4DA746B02D@anarazel.de> <20180813152211.GN3326@tamriel.snowman.net> <20180813152712.u2jnag6jv7x5rkor@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HKLejDDV6gCqJAZ/" Content-Disposition: inline In-Reply-To: <20180813152712.u2jnag6jv7x5rkor@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --HKLejDDV6gCqJAZ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andres, * Andres Freund (andres@anarazel.de) wrote: > On 2018-08-13 11:22:11 -0400, Stephen Frost wrote: > > Greetings, > >=20 > > * Andres Freund (andres@anarazel.de) wrote: > > > On August 13, 2018 4:59:32 PM GMT+02:00, Phil Endecott wrote: > > > but in general, I think it's still > > > >possible > > > >that the master will remove the segment that is needed to start > > > >streaming. > > >=20 > > > That's why I told you about replication slots.... > >=20 > > This should really work even without replication slots though. >=20 > Why? I fail to see what'd be gained by adding "always retain one > segment" rule. It'd not make the setup any more reliable. If anything > it'd make it harder to spot issues in test setups. What exactly is wrong with the setup where this should be failing? Thanks! Stephen --HKLejDDV6gCqJAZ/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbcab3AAoJEO1sijiDR2RVGvwP/jt4MfBrAFeJgL4ng2O8Md1v xpNo4Hv7AAH5Mco6KMKmQeGcCaPB77ZbOr90TEOoD7e/sFP4pIOm1RSBAPBf4lDg PrRT6zesyTBOtycxDMZoURsBZosR7ZuGY7NHxn727Jxp7tWCo/kcOUYdICm5SqsI xKwioXYO4aos0zDhBRYCcmpqZsp9usx2H5/rJtmpoPhJlaa6PhFWFZa9whfY4sk3 VI4ZM/M5onuwUkuAQ8prVK/hOnq3BtLV+9hG5YXXRbTRUUwaYfHaEitzPhOy1BzF VamCxFg+zQSMmyBFlaiec0qt4TA6QT9XKzDijv2YQWHWMXom0/iNyJN4mOQp/Yb9 BcdFc2jX32pXKBprXXN6GgQVzVNZ9BARBPq4sGJJJtFiIUmeHLDX8eI7uzhSlBgC YRaRwRmelnkpr7vIkZwtzQTF7i79FICYSLpTFmMHys3nFdFQZM9Xsn80ugd7TciV QbIcJzda0KO14ug+02N3IUMsNhMBbNCWOwaUh4eaAV+BlGUxhRV6Aqpat1aheB4o pfJx7g8fPDoAV2BPMrvWi8VHO9NugJRsc/VEmmKT+GLbyxIRaUvMihLCsHM742zE eBn3bKH0frCfQPhfAo7FnAMS/AEGoJ4MAh85JMCwGirX6dwrcJk+wRIBGVWVxDzS 3SoaPWkgEmR6/sJaDTQj =gyjA -----END PGP SIGNATURE----- --HKLejDDV6gCqJAZ/--