Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jv0xy-0007V0-Qp for pgsql-general@arkaria.postgresql.org; Mon, 13 Jul 2020 16:06:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jv0xx-0006Um-Ox for pgsql-general@arkaria.postgresql.org; Mon, 13 Jul 2020 16:06:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jv0xx-0006Sj-HI for pgsql-general@lists.postgresql.org; Mon, 13 Jul 2020 16:06:05 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jv0xv-0003b2-Ex for pgsql-general@lists.postgresql.org; Mon, 13 Jul 2020 16:06:04 +0000 Received: by mail-ed1-x52d.google.com with SMTP id dg28so14141919edb.3 for ; Mon, 13 Jul 2020 09:06:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TqFH6Wq9TQfenYDgkEK0Yy2vOtKOB47LOyh32ttig64=; b=BUqdj89O463fMLbahU3wDmnwbzgBGRiywCZbhCm5WwhboMuH1OReNh9RwDB8fJB1Ec 1zi5vn1eoqZOGjX38/4JX2dXZ+Z33NO36ZtuqCK8y7BaZekRCIoGBfwtwIN9pdHmZ/lt FlvF02I1EXrPUm42mFj7HfeAp8L4ex3Ly4Ds6Sk31IblwemrUXiXshIVWZqdm0qJzyEN Z7cs1VhC/FNfY0MAc2dBm2GRll7yr3at1mZi+nhms0cEgVdCcsn2EY/6Ub0Fg/V7mC/H bOVaQEMSBP6TCg0S1EcHJk5ZsNRlTDptDYoBqlQQNDCxNDUZg98mEw3og1szzajSCYqw +90w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TqFH6Wq9TQfenYDgkEK0Yy2vOtKOB47LOyh32ttig64=; b=fL7SGQaHGSVkl8WrzBQAVZzMj0QiXa17XQcxlVFi5QA893yZUxEBKU65TovtLL0HQK Si0J6ubsP+rRMsjbJe2Xk1nh2ommUvVb2A6znlE25x/SQfsLIjtLGIJbTKQELnRHPbQ4 2bB4tNrH1VTRb3tSRKN3C4AWL6VVkcznN43GNJT0WDa31IobyMqMn1PXR+YqmM1hlMoF 9ZAbMQGX5MfMBXQCJfvhky8kdheGd88P2VWM0Qum6ZN4OXU/oUXPeCr+8PapqI45mnpr Xzsfs9JrxMXGERcyLNHn5ChGmrlosoIVgPvCgmuN3VgSCUihUyebioMaps/JoUC4CZWD Eo5g== X-Gm-Message-State: AOAM530f5T97DdcMdWGOKhF9EeON0mevnGVblr2XOk69cESl/tbVkWLf LQEYCsmTPbF5Itx+MMr5fuTfHgus+DQ= X-Google-Smtp-Source: ABdhPJwFCWQemYErPf+E2ai5JIRbyGfKKK0GWAwkPNGDb6J1vqSLLHZF1uWhT5jr6eI5UAM/09P4iA== X-Received: by 2002:a50:fb93:: with SMTP id e19mr142537edq.106.1594656362174; Mon, 13 Jul 2020 09:06:02 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id se16sm10134768ejb.93.2020.07.13.09.06.01 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2020 09:06:01 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Safe switchover From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <20200713160052.GV12375@tamriel.snowman.net> Date: Mon, 13 Jul 2020 18:05:59 +0200 Cc: James Sewell , "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <682CD01B-41A6-42F0-9FCB-41F35D431F3E@gmail.com> References: <7E43945E-4571-4D30-9E8F-B940B9277DEF@gmail.com> <20200710152959.GK12375@tamriel.snowman.net> <01BE6868-6920-4E5D-9A4D-838E3036DCD2@gmail.com> <20200710154556.GL12375@tamriel.snowman.net> <20200713154722.GU12375@tamriel.snowman.net> <20200713160052.GV12375@tamriel.snowman.net> To: Stephen Frost X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Stephen, > On 13. Jul, 2020, at 18:00, Stephen Frost wrote: >=20 > A pgbackrest delta restore will scan the entire data directory and > verify every file matches the last backup, or it'll replace the file > with what was in the backup that's being used. If there's an error > during any of that, the restore will fail. ok, I didn't know that. Thanks very much. I'll look into it. > That re-validation of the entire data directory is a pretty huge > difference compared to how pg_rewind works. I agree. > Ah, yes, if you rebuild the replica from a backup (or from the = primary), > then sure, that's pretty similar to the pgbackrest delta restore, = except > that when using delta restore we're only rewriting files that have a > different SHA checksum after being scanned, and we're pulling from the > backup repo anything that's needed and not putting load on the = primary. so, from what I understand, pgbackrest bottom line merely reduces copy = overhead in such a particular case. *Kind of* like shutdown primary, = rsync, and then startup. > There's been a few discussions on -hackers about this, that'd probably > be the place to discuss it further.. I'm not hacker, I'm just a DBA. :-) Cheers, Paul=