Re: Do we want to avoid checksumming extra files in the datadir? [was: BUG #19647] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Do we want to avoid checksumming extra files in the datadir? [was: BUG #19647]
Date
Msg-id 1477911.1788456583@sss.pgh.pa.us
Whole thread
In response to Re: Do we want to avoid checksumming extra files in the datadir? [was: BUG #19647]  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> On 3 Sep 2026, at 19:10, Jacob Champion <jacob.champion@enterprisedb.com> wrote:
>> The inciting event is that an extension drops a file called
>> pgactive.stat into global/. We could say "don't do that", in which
>> case I think we should follow Robert's idea in [1] and complain about
>> the existence of the file itself rather than the lack of checksummable
>> material. Or we could say "that's fine" and adjust pg_checksums to
>> continue onwards if the filename isn't what we expect.

> I'm not sure I have a strong preference, keeping it in sync with pg_basebackup
> seems like a pretty good strategy to make it easier for users.

It looks to me like there was a fair amount of consensus behind
025584a16, so I think we should conclude that pg_basebackup's new
behavior (ignore stray files) is the right thing and it was an
oversight that pg_checksums wasn't adjusted similarly.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Do we want to avoid checksumming extra files in the datadir? [was: BUG #19647]
Next
From: surya poondla
Date:
Subject: Re: Fix a typo in EnableLogicalDecoding()