From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | David Steele <david(at)pgmasters(dot)net> |
Cc: | Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: trying again to get incremental backup |
Date: | 2023-10-25 17:38:25 |
Message-ID: | CA+TgmoY2PY4sVuNTy2FtJrPz6T8kW-4zqHwxPyRtJkDLd2wSbw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Oct 24, 2023 at 8:29 AM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> Yeah, maybe so. I'm not quite ready to commit to doing that split as
> of this writing but I will think about it and possibly do it.
I have done this. Here's v7.
This version also includes several new TAP tests for the main patch,
some of which were inspired by our discussion. It also includes SGML
documentation for pg_walsummary.
New tests:
003_timeline.pl tests the case where the prior backup for an
incremental backup was taken on an earlier timeline.
004_manifest.pl tests the manifest-related options for pg_combinebackup.
005_integrity.pl tests the sanity checks that prevent combining a
backup with the wrong prior backup.
Overview of the new organization of the patch set:
0001 - preparatory refactoring of basebackup.c, changing the algorithm
that we use to decide which files have checksums
0002 - code movement only. makes it possible to reuse parse_manifest.c
0003 - add the WAL summarizer process, but useless on its own
0004 - add incremental backup, making use of 0003
0005 - add pg_walsummary debugging tool
Notes:
- I suspect that 0003 is the most likely to have serious bugs, followed by 0004.
- See XXX comments in the commit messages for some known open issues.
- Still looking for more comments on
http://postgr.es/m/CA+TgmoYdPS7a4eiqAFCZ8dr4r3-O0zq1LvTO5drwWr+7wHQaSQ@mail.gmail.com
and other recent emails where design questions came up
--
Robert Haas
EDB: http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
v7-0002-Move-src-bin-pg_verifybackup-parse_manifest.c-int.patch | application/octet-stream | 4.3 KB |
v7-0001-Change-how-a-base-backup-decides-which-files-have.patch | application/octet-stream | 11.4 KB |
v7-0005-Add-new-pg_walsummary-tool.patch | application/octet-stream | 16.9 KB |
v7-0004-Add-support-for-incremental-backup.patch | application/octet-stream | 215.7 KB |
v7-0003-Add-a-new-WAL-summarizer-process.patch | application/octet-stream | 130.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-10-25 18:06:45 | Re: race condition in pg_class |
Previous Message | Ashutosh Sharma | 2023-10-25 17:27:52 | Should we represent temp files as unsigned long int instead of signed long int type? |