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 1mgAjl-0005kc-3n for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 19:06:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mgAji-0002qp-2y for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 19:06:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgAjg-0002qc-BT for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 19:06:49 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgAjb-0001w3-La for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 19:06:47 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 486495C00E2; Thu, 28 Oct 2021 15:06:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 28 Oct 2021 15:06:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=+ rmP7nAnKrXv9EJudJ3TVBW16UoZ0jNyOosaVUAN6Bg=; b=MyVUtgsqDxsuQxCPg V6ykmMg6zzmKBxDRA1QkSyngDrY/QZMkDoBvK3w2eAYRGkUbB3fgpcERzXnwtaJv RX9R/P8JHfFVIizKEj0NdZcFLEwHyFw9dumM+Kj14THuVMUj6b9DvvXepqRlBsv1 xsrCsWLbdhjKemvgcgFqPcs3tL2CktCkop15uv4ZkvXd1y8GI2/ZxqBHQ6Y9XSjq FMJQzrUgdPvhLCNr17Q2WoyoRZwsUFqV9jrJfPJhYE+j6H61NzBTqZNLx3gd/LSz vTYa3w9Efj0BDXnBwr1RlG0WFtIyqvZ3Ub9jyW2qt/O4Z1O6/GFnTFfKNWvhdyL1 C6eWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=+rmP7nAnKrXv9EJudJ3TVBW16UoZ0jNyOosaVUAN6 Bg=; b=SrOMqEty0udrFC7kNz1Si4TgcKwXwirxThAh1P/Wrb6vbN5zQ3M9kbjL8 NSx1wcnL6J/L6xinSaU+FMmezc6BM2Egi4ZhZ4f4riWouqmW4S/mHtj0a0YXTFh0 PraKDfyZZORtoMXEtbYS5n/6cKkMAbuychjh6QVTU2oRdUw2QY6xphmR264o7WrG wJFDgnGa+dNYdtaOTPH9besMUEKkxIl9CW/pIDafFWe+fXhK496IRQJv35V85TLQ wWi5/GWtGVU46iJQOKFpp08Ux4ERY7ZcytNfdi2qjzce4E9s50w4sb0EWK5m6v2b LoDALa2QNhVRS9ux9j/MPdevOWACg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegvddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleekgeejhf ekteehfeduveetheeivdduheekudelteefvdffueehtddvgedtfeefnecuffhomhgrihhn pehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgt ohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Oct 2021 15:06:39 -0400 (EDT) Message-ID: Date: Thu, 28 Oct 2021 12:06:38 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: Incremental backup Content-Language: en-US To: Ron , 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: Adrian Klaver In-Reply-To: <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 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. ... " > > PgBackRest does full and incremental backups, plus captures WAL files, > but globally to a cluster. > > -- > Angular momentum makes the world go 'round. -- Adrian Klaver adrian.klaver@aklaver.com