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 1mgCaN-0001Fc-SY for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 21:05:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mgCaM-00062d-RD for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 21:05:18 +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 1mgCaM-00062U-FR for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 21:05:18 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mgCaJ-0003s6-L3 for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 21:05:17 +0000 Received: by mail-ot1-x331.google.com with SMTP id l10-20020a056830154a00b00552b74d629aso10491965otp.5 for ; Thu, 28 Oct 2021 14:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=5h5KhmVV/wfhav49H0m3lKI54TXU8vGC149uytgfwKE=; b=qLwveXM23dcpS0W2oI9z2+2eLHY4GA9vawqw7DaK7VWIJ2rGvahAwPxXfe0m9z0xoP Wy3UN9tRtJ9LQHkeryypAsVEmR20UTWiUycKDy36h4ghiPAv+BSJiU7PSD8x44EEEzgk 5seAoLF0smVYMi7uCIoTLWVaFObZMcnlOai2ky6w2kfXFVb4hSYiFkAHYjKQSh3Fq23W ydAA3s8N0qyvC1oi7weI+uvgVZw5Ohs260RssGt9eANbVjMyxfLairKy1wfSJrVfy8RR wVPVQfkjCROWVj3Jx+HIgW54N3vx4h9UJOCKmmmRZVasUw9UTAd80hSwmyPe6izll9Dq FvnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=5h5KhmVV/wfhav49H0m3lKI54TXU8vGC149uytgfwKE=; b=n9uwaVzgabo+klnWpnyhh1eAjgId4AsCmzpL4HPsyS8SxWtr1Z7s0Pu1GhG+ro3ZkC 9MjMStFMs9hB0Ki/4ZAcqR/9CvaC+VGqK4mEeMwP7rCxypEnpLln2vYWCrrv4LTOO+JC ajLCjdMXK8B7bVL3U9eL/6pm+nHw2VU/FWX1adjEvAgff4LOnCI6OE+O36pDt1sR0qU4 GAKYagB2CfyBr6mkJn7WcR1CpuVxB5MgLl2SoioMAR/lS+k6FC8Jg1eBE+4iTnYOLMtC aDrPcVu+Rc6DQcZRzUbqd41XpDWmR31cCC0gZw5kYOBznjTecbvLfdSyCe7BR8sTR4Qz hv6Q== X-Gm-Message-State: AOAM530gOQgl90NrrLTE7AkyJ9TxlYJXbrLQiQ6K2Ns1ib8lLgguRj8P xweQfZzyKhEg/MUOhmxoe+MRVoZja5w= X-Google-Smtp-Source: ABdhPJzm+WRlPeTdjUC1uK0SkVoq+izLEWygiwkhlLRl8LaFYMZOowsO/IXCSF/BpJd7hrgFQa832w== X-Received: by 2002:a9d:ec6:: with SMTP id 64mr5600460otj.156.1635455114707; Thu, 28 Oct 2021 14:05:14 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id o14sm1263326oos.11.2021.10.28.14.05.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 14:05:14 -0700 (PDT) Subject: Re: Incremental backup To: pgsql-general@lists.postgresql.org References: <4ad9560c-d6f7-3f74-b577-cf72c93195d0@aklaver.com> <68943e88-7d6b-edb3-90b5-782b9fb5fcbd@gmail.com> <57f54e84-c5f2-84fe-6e65-de5f4ddfdd47@aklaver.com> <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com> From: Ron Message-ID: Date: Thu, 28 Oct 2021 16:05:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/28/21 3:43 PM, Adrian Klaver wrote: > On 10/28/21 12:23, Ron wrote: >> On 10/28/21 2:06 PM, Adrian Klaver wrote: >>> On 10/28/21 11:48, Ron wrote: >>> >>> " >>> Logical replication is built with an architecture similar to physical >>> streaming replication (see Section 27.2.5). It is implemented by >>> “walsender” and “apply” processes. The walsender process starts logical >>> decoding (described in Chapter 49) of the WAL and loads the >> >> Scans the (global) WAL data for only the that portion from the relevant >> database? >> >> If so, definitely not the same as having per-database WAL files. >> >> Just as importantly, replication is not, and never will be, a substitute >> for backups. > > Who says you have to use the mechanism to replicate to another database, > why not to a file? But WAL files store every transaction, right?  Differential and incremental backups only send the modified pages, even if the page has been updated 1000 times. > > Not sure of the plausibility, still it might be interesting to find out? > > Also isn't a backup just an interrupted form of replication? Highly interrupted, and usually never written back to disk in "active" form. -- Angular momentum makes the world go 'round.