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 1mgB07-0006DO-R6 for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 19:23:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mgB06-0006mM-P8 for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 19:23:46 +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 1mgB06-0006eF-Ey for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 19:23:46 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mgB04-00038v-22 for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 19:23:45 +0000 Received: by mail-oi1-x229.google.com with SMTP id y128so9751123oie.8 for ; Thu, 28 Oct 2021 12:23:43 -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=bbUUBIz3UNnA82seQ0k3J4V80lkBvhuKfX2cPMXhVVY=; b=ntMzW2/qpLe9Hvta9q1GdfD6Mr4bGtUNSKEUtAgqhz9X1IKideUxk9lMMqDr9Qfsoy WBftn8EnMOHpaPxRl4vegstK3PDhgkNmCwgEgZQsU5dqP7eVQJOto7UmAiu7ehx/SqiF 0t2edkzvtSA5YdRl3++jdj7+RErqYAzJb9bgh8q+oayuyrXu+3+TZnmmHtanBFezs03F HeFGNGrEr3HBFxOS+KgG9mfgTBW8OyRgeG2OtCQedGlQ5B09Q+mmKtiFiww3wXX32Q8y LYrq2MzlS/hTp3KH3mGdzqg/xp8wl6HIAgy0DRrWbyKQm40+BUYuUncta6VZ+Gpi9yHv P6OA== 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=bbUUBIz3UNnA82seQ0k3J4V80lkBvhuKfX2cPMXhVVY=; b=J7vuy9qVYDXcwjjlr3IpjU46LnJp+2oLT3/zrBLdcGbpHWx9Lu46KqBOchE7Ip9vHl DiMlKeq6ozFmV2eQlnXayqHdbVUVRn1P/2ooc8Wmy8RlGTVwtumqaauukotFviUvsl7l /nUeehHgfGnMVibsHj3LAkFsJ6dSOecaCwTgVNt017FUS6p31P7CprPpFDatYSVeELll 1RoFi9hdxOU/gcTcI6F6yhpF3m/P6Lru/B/xi7ciFiTtNA1cla4m3lMmjiaTA2O9p3gE 2+ngOYybsJNWvMTFY4CobX8LB4bM6uPpJnawVstScC7Lblh8HovaQvL2Jjw7LExWUB0F wYhQ== X-Gm-Message-State: AOAM533Nvwa6mF3b8Q7h6jcWAiHl1ow33gdk6LeKPkaLYyDu0Cnem5RM o5OaIELC8FQ+/2Xhv4ViHsdpqY5V0a4= X-Google-Smtp-Source: ABdhPJwWPSDfIod/Vu21EKDyAkKY9pDaPjV18s7MttHbGjsVNxDsflRPUIM16NQTxI0HJAtEnHIN3Q== X-Received: by 2002:aca:ac0b:: with SMTP id v11mr10017052oie.155.1635449022621; Thu, 28 Oct 2021 12:23:42 -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 a20sm784486oie.58.2021.10.28.12.23.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 12:23:41 -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 14:23:39 -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 2:06 PM, Adrian Klaver wrote: > On 10/28/21 11:48, Ron wrote: >> On 10/28/21 1:00 PM, Adrian Klaver wrote: >>> On 10/28/21 10:51, Ron wrote: >>> > >> Not doable in Postgresql because WAL files are global to cluster. I've >> read multiple times that will not be changed. > > Yet somehow logical replication does it: > > https://www.postgresql.org/docs/14/logical-replication-architecture.html > > " > 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. > standard logical decoding plugin (pgoutput). The plugin transforms the > changes read from WAL to the logical replication protocol (see Section > 53.5) and filters the data according to the publication specification. The > data is then continuously transferred using the streaming replication > protocol to the apply worker, which maps the data to local tables and > applies the individual changes as they are received, in correct > transactional order. > " > > https://www.postgresql.org/docs/14/logical-replication.html > > "The typical use-cases for logical replication are: > >     Sending incremental changes in a single database or a subset of a > database to subscribers as they occur. >  ... > " -- Angular momentum makes the world go 'round.