Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9DA9-0001Lb-NY for pgsql-general@arkaria.postgresql.org; Mon, 30 Oct 2017 16:43:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9DA9-0000he-3n for pgsql-general@arkaria.postgresql.org; Mon, 30 Oct 2017 16:43:45 +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.84_2) (envelope-from ) id 1e9D7i-0001Rd-Uu for pgsql-general@postgresql.org; Mon, 30 Oct 2017 16:41:15 +0000 Received: from static-96-255-250-162.washdc.fios.verizon.net ([96.255.250.162] helo=tamriel.snowman.net) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9D7f-00036u-UB for pgsql-general@postgresql.org; Mon, 30 Oct 2017 16:41:13 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 27D9C5F797; Mon, 30 Oct 2017 12:41:11 -0400 (EDT) Date: Mon, 30 Oct 2017 12:41:11 -0400 From: Stephen Frost To: Rhhh Lin Cc: "pgsql-general@postgresql.org" Subject: Re: Backup strategy using 'wal_keep_segments' Message-ID: <20171030164111.GF4628@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dqXbKTu2MnI35yFR" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org --dqXbKTu2MnI35yFR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Rhhh Lin (ruanlinehan@hotmail.com) wrote: > A colleague recently suggested that instead of implementing an 'archive_command' to push archivable WALs to a secondary location (for further backup to tape for example), we could instead persist the WAL files in their current location by setting the "wal_keep_segments" parameter to an extreme value e.g. 1000 and have the 'archive_command' do nothing. Michael's points are good and I wouldn't recommend using this archive command either, but what isn't clear to me is what you're actaully trying to solve by using such a method..? You haven't said anywhere what's wrong with archive_command (I know that there certainly are some things wrong with it, of course, but there are solutions to a number of those issues that isn't a hack like this ...). Thanks! Stephen --dqXbKTu2MnI35yFR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZ91YmAAoJEO1sijiDR2RVXhEQAK5UbuGeo4X+OIkVY5xb2eQG 8E9zVj/QpR5lm9UcN87qBs2zJtoA7d9o5VcqUwaGlP2ntz4c6pfAwUI88zZ15bcT epW1gdE/G7d+XyQzSjTpZJVDEz0oHTHoSS61Auu+7YW6xcZrYN6kehOVass214ta Ew/RbpUrRGWpi0FhtlWoNwMM5ODW5CHUAOd5FjFP5plbsC7YBJVwgVK5ncISqT2r d80SHCox//7wpPwneQKEyP79GyETtz9m4Z1sF601oOmmPP4mUz6YqhNcv5opISDA l4gHEmNNYS+gwMwByw5ma39VGmpZA8j9NM0JEclcR8mGtP+ED4Ola5mHKUEWRFrG E3O4Ar2YQljbk10NRkFM1+7PDB/WrAivWR5ny5FJdosiPm0pYcGmEL/1EKabzCyR olxDk3oc4v6LbsDNMJvQg5HIDqkG0T4u8MaDHnOtwJaagMC2U97DS3nZfdTGYrx/ Zr2DsdhEHJ6TCiIzwbppraNXVELBVEpBwsBYfxHTiiMTOTayFWnUabfD+WM/qasV 5FJUUBAlQ5A8CGflaQPox5fa5TbeWXN9/lEQ2UjK0eYtxvIi63yBWcuA3O+w3wVK R25WsjDOpgQQg5t87yQPvvTSoTBiFq1gxc+9vQtb6jfgaE8sqIijFKzdinpcRRA3 egUVfnCfmYTHrBOVjaLw =aSlx -----END PGP SIGNATURE----- --dqXbKTu2MnI35yFR--