Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz0Vs-00044d-MB for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 14:48:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gz0Vr-00050B-8K for pgsql-general@arkaria.postgresql.org; Wed, 27 Feb 2019 14:48:47 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz0Vq-000504-Vo for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 14:48:47 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz0Vo-0002rM-Bn for pgsql-general@lists.postgresql.org; Wed, 27 Feb 2019 14:48:46 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.15.2/8.15.2/Debian-8) with ESMTPS id x1REmbwS015166 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Feb 2019 16:48:42 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x1REmbJ3075420 for ; Wed, 27 Feb 2019 16:48:37 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Barman disaster recovery solution To: pgsql-general@lists.postgresql.org References: <1ttgfmod96uhh1ju7mk0f7v6.1551268542036@email.lge.com> <945fc3cf-a9dd-c594-4fb5-33e497a10190@pgmasters.net> From: Achilleas Mantzios Message-ID: <13f3644c-adef-9fcc-09c9-cd14dce60656@matrix.gatewaynet.com> Date: Wed, 27 Feb 2019 16:48:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <945fc3cf-a9dd-c594-4fb5-33e497a10190@pgmasters.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.100.2 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-27.9 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_HAM_SIGNAT1,TW_PG,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 27/2/19 4:16 μ.μ., David Steele wrote: > On 2/27/19 2:31 PM, Achilleas Mantzios wrote: >> On 27/2/19 1:58 μ.μ., richter@simkorp.com.br wrote: >>> Just to notice, I d o use backup from standby and WAL archive from standby. It is possible. But you have to configure standby with option of wal archive "always". >> >> I guess there are issues with it. If this was so easy then pgbarman and pgbackrest would support it out of the box. > > There are a few issues with it: > > 1) If you allow the primary and standby to archive to the same repository then there needs to be some conflict resolution if they write at the same time.  If they write to different repositories > then you need to decided which one to use for a restore, or have some kind of conflict resolution between them.  It gets complicated. > > 2) Writing only from the standby reduces load on the primary but if the connection to the primary is down then you can get behind on archiving. If something then happens to the primary then your > recovery point will be limited. David to quote an older email from you: "pgBackRest currently requires some files and all WAL to be sent from the primary even when doing backup from standby.  We may improve this in the future but it's not on the road map right now. " So, I had the impression that receiving WALs from the standby was a greater technical problem. > > Regards, -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt