Re: Add system identifier to backup manifest
Amul Sul <sulamul@gmail.com>
From: Amul Sul <sulamul@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2024-01-22T07:21:25Z
Lists: pgsql-hackers
Attachments
- v4-0001-pg_verifybackup-code-refactor.patch (application/octet-stream) patch v4-0001
- v4-0002-Add-system-identifier-to-backup-manifest.patch (application/octet-stream) patch v4-0002
On Mon, Jan 22, 2024 at 10:08 AM Amul Sul <sulamul@gmail.com> wrote: > > > On Fri, Jan 19, 2024 at 10:36 PM Amul Sul <sulamul@gmail.com> wrote: > >> On Wed, Jan 17, 2024 at 8:40 PM Robert Haas <robertmhaas@gmail.com> >> wrote: >> >>> >>> >> Updated version is attached. >> > > Another updated version attached -- fix missing manifest version check in > pg_verifybackup before system identifier validation. > Thinking a bit more on this, I realized parse_manifest_file() has many out parameters. Instead parse_manifest_file() should simply return manifest data like load_backup_manifest(). Attached 0001 patch doing the same, and removed parser_context structure, and added manifest_data, and did the required adjustments to pg_verifybackup code. Regards, Amul
Commits
-
Add the system identifier to backup manifests.
- 2041bc4276c9 17.0 landed
-
pg_verifybackup: Refactor parse_manifest_file.
- dc8f2d7c064a 17.0 landed
-
Add option force_initdb to PostgreSQL::Test::Cluster:init()
- ff9e1e764fcc 17.0 landed