Re: data_checksums + debug_discard_caches = crash - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: data_checksums + debug_discard_caches = crash
Date
Msg-id CAHGQGwGnFfqE3SM4SMe54vMbASmCT4_abO76Mfna3yeeyug9JQ@mail.gmail.com
Whole thread
Responses Re: Allow table AMs to define their own reloptions
Re: data_checksums + debug_discard_caches = crash
List pgsql-hackers
On Tue, Aug 4, 2026 at 12:22 PM cca5507 <cca5507@qq.com> wrote:
>
> > While working on some stress suite I found the issue related to way
> > ProcessSingleRelationByOid access rel->rd_smgr.
> >
> > Patch with fix and test is attached (it is self-explanatory and pretty simple).
>
> Good catch! I verify that the bug exists and your patch fixes it. Patch LGTM!

+1

The code change looks good to me.

Is the new test really necessary? It only covers this specific data-checksums
worker path, while debug_discard_caches can make the test time longer.

Regards,

--
Fujii Masao



Attachment

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: CREATE SUBSCRIPTION ... SERVER vs. pg_dump, etc.
Next
From: solai v
Date:
Subject: Re: [SP-]GiST IOS visibility bug (was: Why doens't GiST require super-exclusive lock)