Re: Add system identifier to backup manifest

From: Amul Sul <sulamul(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add system identifier to backup manifest
Date: 2024-01-22 07:21:25
Message-ID: CAAJ_b96uU1aSvuzTt4AO+y18Z+o=_s8Zxbo2Dy4Wn=5vRGKPKw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 22, 2024 at 10:08 AM Amul Sul <sulamul(at)gmail(dot)com> wrote:

>
>
> On Fri, Jan 19, 2024 at 10:36 PM Amul Sul <sulamul(at)gmail(dot)com> wrote:
>
>> On Wed, Jan 17, 2024 at 8:40 PM Robert Haas <robertmhaas(at)gmail(dot)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

Attachment Content-Type Size
v4-0001-pg_verifybackup-code-refactor.patch application/octet-stream 8.0 KB
v4-0002-Add-system-identifier-to-backup-manifest.patch application/octet-stream 33.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2024-01-22 07:23:43 Re: [PoC] Improve dead tuple storage for lazy vacuum
Previous Message Konstantin Knizhnik 2024-01-22 07:21:14 Re: index prefetching