pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Incremental backup
Date: Thu, 28 Oct 2021 13:48:19 -0500
Message-ID: <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com> (raw)
In-Reply-To: <f16610db-9519-390f-1a56-1590d68b44ab@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>

On 10/28/21 1:00 PM, Adrian Klaver wrote:
> On 10/28/21 10:51, Ron wrote:
>
>>>
>>> Except we have no way of knowing what the situation is. I prefer not to 
>>> assume a context.
>>
>> You make it sound like incremental (and differential) backups are some 
>> complicated thing that needs context.  That's utter and complete rubbish 
>> in every Enterprise RDBMS except Postgresql.
>>
>
> This is Postgres so we do need context.
>
> Also you have not defined what you consider incremental backup? I for one 
> would put this:
>
> https://www.postgresql.org/docs/14/continuous-archiving.html

I define Incremental and Differential backups the way everyone else does:

Incremental Backup: capture all *changed data* since the last incremental 
backup.  (Not the same as WAL archiving.)
Differential Backup: capture all *changed data* since the last full backup.
Transaction Backup: capture *all transactions* in a log file.

>
> forward as a candidate.
>
>> Something like "BACKUP DATABASE (DIFFERENTIAL) foo TO foo.bak;" should be 
>> a fundamental feature of every RDBMS that claims to be enterprise class.
>
> Knock your self out:
>
> https://wiki.postgresql.org/wiki/Developer_FAQ

Not doable in Postgresql because WAL files are global to cluster. I've read 
multiple times that will not be changed.

PgBackRest does full and incremental backups, plus captures WAL files, but 
globally to a cluster.

-- 
Angular momentum makes the world go 'round.

view thread (31+ messages)  latest in thread

Message-ID: <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com>
Permalink:  ../995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com/
Also on:    postgresql.org/message-id/995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.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: ronljohnsonjr@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Incremental backup
  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>

* 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