Re: pg_combinebackup fails on file named INCREMENTAL.* - Mailing list pgsql-hackers

From David Steele
Subject Re: pg_combinebackup fails on file named INCREMENTAL.*
Date
Msg-id 5a7817da-6349-4653-8056-470300b6e512@pgmasters.net
Whole thread Raw
In response to Re: pg_combinebackup fails on file named INCREMENTAL.*  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: pg_combinebackup fails on file named INCREMENTAL.*
List pgsql-hackers
On 4/18/24 00:14, Robert Haas wrote:
> On Tue, Apr 16, 2024 at 9:25 AM Robert Haas <robertmhaas@gmail.com> wrote:
>> On Mon, Apr 15, 2024 at 10:12 PM David Steele <david@pgmasters.net> wrote:
>>> Anyway, I think it should be fixed or documented as a caveat since it
>>> causes a hard failure on restore.
>>
>> Alright, I'll look into this.
> 
> Here's a patch.

Thanks! I've tested this and it works as advertised.

Ideally I'd want an error on backup if there is a similar file in any 
data directories that would cause an error on combine, but I admit that 
it is vanishingly rare for users to put files anywhere but the root of 
PGDATA, so this approach seems OK to me.

Regards,
-David



pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: pg_combinebackup does not detect missing files
Next
From: Thomas Munro
Date:
Subject: Re: Cannot find a working 64-bit integer type on Illumos