Re: trying again to get incremental backup
Robert Haas <robertmhaas@gmail.com>
Attachments
- v7-0002-Move-src-bin-pg_verifybackup-parse_manifest.c-int.patch (application/octet-stream) patch v7-0002
- v7-0001-Change-how-a-base-backup-decides-which-files-have.patch (application/octet-stream) patch v7-0001
- v7-0005-Add-new-pg_walsummary-tool.patch (application/octet-stream) patch v7-0005
- v7-0004-Add-support-for-incremental-backup.patch (application/octet-stream) patch v7-0004
- v7-0003-Add-a-new-WAL-summarizer-process.patch (application/octet-stream) patch v7-0003
On Tue, Oct 24, 2023 at 8:29 AM Robert Haas <robertmhaas@gmail.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
Commits
-
Minor fixes to pg_combinebackup and its documentation.
- 1713e3d6cd39 17.0 cited
-
Fix defects in PrepareForIncrementalBackup.
- dffde5bf16a5 17.0 landed
-
Add WALSummarizerLock to wait_event_names.txt
- 5c430f9dc559 17.0 landed
-
Initialize variable to placate compiler.
- da083b20f637 17.0 landed
-
Replace nonsense comment with a relevant one.
- ffc6ab9b56ae 17.0 landed
-
Fix numerous typos in incremental backup commits.
- 49f2194ed5c1 17.0 landed
-
Add support for incremental backup.
- dc212340058b 17.0 landed
-
Add a new WAL summarizer process.
- 174c480508ac 17.0 landed
-
Move src/bin/pg_verifybackup/parse_manifest.c into src/common.
- aafc07c7a191 17.0 landed
-
Fix brown paper bag bug in 5c47c6546c413d5eb51c1626070a807026e6139d.
- 47f01d727e3a 17.0 landed
-
Rename pg_verifybackup's JsonManifestParseContext callback functions.
- 278eb13c4823 17.0 landed
-
Rename JsonManifestParseContext callbacks.
- d463aa06a9a8 17.0 landed
-
Change how a base backup decides which files have checksums.
- 025584a168a4 17.0 landed
-
Change struct tablespaceinfo's oid member from 'char *' to 'Oid'
- 5b36e8f078a3 17.0 landed
-
Refactor parse_filename_for_nontemp_relation to parse more.
- 5c47c6546c41 17.0 landed
-
During online checkpoints, insert XLOG_CHECKPOINT_REDO at redo point.
- afd12774ae89 17.0 landed
-
In basebackup.c, refactor to create read_file_data_into_buffer.
- c2ba3fdea593 17.0 landed
-
In basebackup.c, refactor to create verify_page_checksum.
- 053183138a7a 17.0 landed
-
Report syncscan position at end of scan.
- e8d74ad625f7 17.0 cited
-
Exclude additional directories in pg_basebackup
- 6ad8ac602628 10.0 cited
-
Add new JSON processing functions and parser API.
- a570c98d7fa0 9.3.0 cited