pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Incremental backup
Date: Thu, 28 Oct 2021 12:06:38 -0700
Message-ID: <a5027f17-ca2e-ce7b-a42f-e291f13b156d@aklaver.com> (raw)
In-Reply-To: <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com>
References: <CAD_UXMakmNELSH+EguMLwoDnfOSBza3RHnGP5fKA9A7t=-TMPQ@mail.gmail.com>
	<4ad9560c-d6f7-3f74-b577-cf72c93195d0@aklaver.com>
	<68943e88-7d6b-edb3-90b5-782b9fb5fcbd@gmail.com>
	<57f54e84-c5f2-84fe-6e65-de5f4ddfdd47@aklaver.com>
	<e539fda9-5b0c-e4b0-1e28-64278f72b38f@gmail.com>
	<f16610db-9519-390f-1a56-1590d68b44ab@aklaver.com>
	<995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com>

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





view thread (31+ messages)  latest in thread

Message-ID: <a5027f17-ca2e-ce7b-a42f-e291f13b156d@aklaver.com>
Permalink:  ../a5027f17-ca2e-ce7b-a42f-e291f13b156d@aklaver.com/
Also on:    postgresql.org/message-id/a5027f17-ca2e-ce7b-a42f-e291f13b156d@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: Incremental backup
  In-Reply-To: <a5027f17-ca2e-ce7b-a42f-e291f13b156d@aklaver.com>
  References: <CAD_UXMakmNELSH+EguMLwoDnfOSBza3RHnGP5fKA9A7t=-TMPQ@mail.gmail.com> <4ad9560c-d6f7-3f74-b577-cf72c93195d0@aklaver.com> <68943e88-7d6b-edb3-90b5-782b9fb5fcbd@gmail.com> <57f54e84-c5f2-84fe-6e65-de5f4ddfdd47@aklaver.com> <e539fda9-5b0c-e4b0-1e28-64278f72b38f@gmail.com> <f16610db-9519-390f-1a56-1590d68b44ab@aklaver.com> <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com> <a5027f17-ca2e-ce7b-a42f-e291f13b156d@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox