Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enqof-0000Qo-Ah for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 19:09:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enqod-0000Kl-Vf for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 19:09:31 +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.84_2) (envelope-from ) id 1enqod-0000Kc-O1 for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 19:09:31 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enqoW-00067p-QN for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 19:09:31 +0000 Received: from Davids-iMac.local (unknown [173.169.74.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 16E445466C; Mon, 19 Feb 2018 19:09:23 +0000 (UTC) Subject: Re: pgBackRest backup from standby To: Don Seiler Cc: Simon Riggs , pgsql-general@lists.postgresql.org References: <3f5aa386-32df-4ea9-51a6-ae0c918fd04f@pgmasters.net> <4ae14a90-1f2d-09f6-5e56-1609acad51b0@pgmasters.net> <09b97a16-d7c4-e014-4e69-aa8b890cb6cc@pgmasters.net> <42d5f210-70e8-e7da-37ec-7903c69d008d@pgmasters.net> From: David Steele Message-ID: <247a0aa5-7e02-6220-bdc2-5f6b1d001673@pgmasters.net> Date: Mon, 19 Feb 2018 14:09:21 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/19/18 2:05 PM, Don Seiler wrote: > On Mon, Feb 19, 2018 at 12:39 PM, David Steele > wrote: > > > I read "open it for testing (or backups in this case)" as letting > recovery complete and promoting the cluster to a master before taking > the backup. > > Don, is that the case?  If it is, I think there's a problem with or > without a timeline switch.  If you confirm the backup is being taken as > above then I'll detail my concerns. > > > Note that this is just for creating a couple of one-off backups to > restore for our dev and pre-prod environments. Given that, I was going > to open a new clone as its own cluster and take backups from that. The > data would be the same though and suit purposes of the dev and pre-prod > refreshes. > > If I were taking backups for the purpose of production backups, I would > not do things this way. That is the eventual plan but right now we > aren't ready to make the changes necessary in the production environment. OK, that's fine then. You can play these to consistency and they'll be fine. I just wouldn't try to do any PITR using the production WAL archive. -- -David david@pgmasters.net