Re: small pg_combinebackup improvements - Mailing list pgsql-hackers

From Robert Haas
Subject Re: small pg_combinebackup improvements
Date
Msg-id CA+Tgmoa-wcC=AjD1FKcyVq004TKydcr5DcNB4vS0uc-tSC2EBg@mail.gmail.com
Whole thread Raw
In response to Re: small pg_combinebackup improvements  (Amul Sul <sulamul@gmail.com>)
List pgsql-hackers
On Sun, Nov 3, 2024 at 11:40 PM Amul Sul <sulamul@gmail.com> wrote:
> +1 for the back-patching.
>
> For 0002, I think we could report the error a bit earlier — the better
> place might be in the else part of the following IF-block, IMO:
>
> /*
>  * If s->header_length == 0, then this is a full file; otherwise, it's
>  * an incremental file.
>  */
> if (s->header_length == 0)

We could, but I have some follow-up patches adding some new
functionality which I plan to post soon, and for those patches, it
turns out to be more convenient to have the error check where I put
it. So I'm sticking with that placement.

Committed and back-patched both to v17; thanks to both of you for the review.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: Pgoutput not capturing the generated columns
Next
From: Robert Haas
Date:
Subject: Re: pgsql: Implement pg_wal_replay_wait() stored procedure