Re: pg_rewind copies - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: pg_rewind copies
Date
Msg-id 57D49E3F-38DB-42B4-A76F-9A6B99F16958@yesql.se
Whole thread Raw
In response to Re: pg_rewind copies  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
> On 1 Apr 2022, at 12:46, Heikki Linnakangas <hlinnaka@iki.fi> wrote:

>> +    if (len >= sizeof(dstpath))
>> +        pg_fatal("filepath buffer too small");    /* shouldn't happen */
>
> Makes sense. I would remove the "shouldn't happen"; it's not very hard to make it happen, you just need a very long
targetdatadir path. And rephrase the error message as "datadir path too long". 

Right, good point.

> One typo in the commit message: s/update/updates/.

Will fix.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pg_rewind copies
Next
From: Michael Paquier
Date:
Subject: Re: Rewriting the test of pg_upgrade as a TAP test - take three - remastered set