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 1iMVG2-0002Ax-Ba for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 10:49:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iMVG1-0005nj-2Q for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 10:49:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMVG0-0005nS-JJ for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2019 10:49:48 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iMVFx-0001Nc-Ti for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2019 10:49:47 +0000 Received: by mail-wr1-x443.google.com with SMTP id w18so12834052wrt.3 for ; Mon, 21 Oct 2019 03:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ocado.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=FOw2CAM5xKDK2MBHLPnpzRXuFyq8YTBdPbMQxoi4Uxs=; b=LbZfZcO3KTItXCQFuah0aU4fZ29+Px9RNioUkWTGw52N4KMFDq0o+9D35nV3UI7w2H rGDPtYSyba8z+V7BA0PUSFzXB3VLt9rht+aWj1Grss7tpjdfMcJ/0exLq8wTosv4xieF xp8g4O0qyWXyoj1FaYdTLZDcnyyZHwrjn+pz04ju+ld3LpaosuDZ90ZSjTYRTHWkCAJw VPrpcM39nWwOtUsKTL0koM1vixq3lbzOFmAdAXpLdvKv40Znn9Xkue3J3+6LM4VB04kQ Mva8vZvfOgCN6tKIpaGbVv4OoC2Q7KSyGTqrzAXJONbtrIcwgv1BAGq2fdJzZx+F3ZpJ 2+fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=FOw2CAM5xKDK2MBHLPnpzRXuFyq8YTBdPbMQxoi4Uxs=; b=eBl65LmF0UMpe+GhfiqiftxA6dehdMBp0oy2jfgteMi+IBdGOF0N2CDLDjUFt8c86T WHWiGTIw39mC3x3GNE/RfDsiA1rfh4aHEEI9P8j15HBAERinv1K9FP2qUqIIaibFfjhD B64Y0RT18lfY+kpFcMG4rvCslJoKnx00OIqyqA+I3V+c9zOYeQmijWVacsJG7xQjyfXV JmkrfNcR20lwxyFpoxweqNPf+XSvK9S1I0Ww7fZF/x7LJx6LY98qHAmaGS1XjUcDbAOp RZI+gEx1hM9jY7Ks3IE2M0OFKwx9x7MOvk5Rd6RmJrMFMGuM39Ac28SnAEGRXhIRlF1V iiRg== X-Gm-Message-State: APjAAAW8ndkuPO6gCtYPNiDXrS33Cwv2t/p+Azqgu6LSS6McZTk2JqLg sgl+h9/ghkzADS6VUXnuH3vFgA2HhJSbRiZmTTiHDnUhLz60GlCRK0xzVHOJqKIcaQ4USjGc5im DM4sjldn7c5R5Gu0IYGPHVesgTcYPrg== X-Google-Smtp-Source: APXvYqyCkZZT9rk13LOzUAWMPaVatvomeunCQnXcX/k6Drqvm46D2NH+h2KQAmW7ei1zqjg6Avx64A== X-Received: by 2002:adf:bad3:: with SMTP id w19mr21010396wrg.17.1571654983979; Mon, 21 Oct 2019 03:49:43 -0700 (PDT) Received: from [10.62.14.68] ([91.206.0.63]) by smtp.gmail.com with ESMTPSA id e12sm9757538wrs.49.2019.10.21.03.49.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Oct 2019 03:49:43 -0700 (PDT) Reply-To: f.venchiarutti@ocado.com Subject: Re: Postgres Point in time Recovery (PITR), To: Luca Ferrari , Daulat Ram Cc: Avinash Kumar , David Steele , Andreas Joseph Krogh , "pgsql-general@lists.postgresql.org" References: <3ff2963f-daab-81d4-ab1a-569fe1c8857b@pgmasters.net> From: Fabio Ugo Venchiarutti Organization: Ocado Technology Message-ID: Date: Mon, 21 Oct 2019 11:49:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 21/10/2019 09:52, Luca Ferrari wrote: > On Sat, Oct 19, 2019 at 7:46 PM Daulat Ram wrote: >> One more questions is, how backups are useful if we have streaming replication . As I know, we can promote the standby as primary in case of disaster at primary side. Do we need to schedule backups if we have streaming replication? > > Let's speculate a little on that: do you need backups if you have a > RAID-1 configuration? > Replication helps you reduce almost to zero the time to handle a > disaster, backups allow you to recover in a more large time window. > > Luca > > TBH I hear this argument more often than I wish. Offline backups and data replication are nearly entirely orthogonal. Any form of instantaneous redundancy (RAID, instantaneous replication and so on) primary is a mitigation measure to protect data & availability against loss of infrastructure. Backups (preferably with PITR) also do that, but that's not their primary purpose unless you can't afford live redundancy on top of them. Offline backups address many failure scenarios that any form of live replication is defenseless against (eg: logical damage to the data as a result of human errors/bugs/vandalism would hit all your replicas, but you always can perform DR from a backup). Delayed replicas, or any online rollback capability (such as pg_rewind off the server's own pg_wal or Oracle's flashback), somewhat live in a grey area in between, and their effectiveness varies depending on which level was compromised. -- Regards Fabio Ugo Venchiarutti OSPCFC Network Engineering Dpt. Ocado Technology -- Notice: This email is confidential and may contain copyright material of members of the Ocado Group. Opinions and views expressed in this message may not necessarily reflect the opinions and views of the members of the Ocado Group. If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. References to the "Ocado Group" are to Ocado Group plc (registered in England and Wales with number 7098618) and its subsidiary undertakings (as that expression is defined in the Companies Act 2006) from time to time. The registered office of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.