Re: [PATCH] BUG FIX: inconsistent page found in BRIN_REGULAR_PAGE

Kyotaro Horiguchi <horikyota.ntt@gmail.com>

From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: wanghaiyang.001@bytedance.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2022-08-04T08:12:39Z
Lists: pgsql-bugs
I'd like to explain a bit further.

At Thu, 04 Aug 2022 16:55:35 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in 
> > BRIN_EVACUATE_PAGE is an unlogged bit, which is never set during
> > recovery.  See brin_start_evacuating_page() for details.

That being said, I think that some bug could unexpectedly set the flag
during recovery. I sought for clean way to check that only while not
in evacuation, but I found none..

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



Commits

  1. Fix end LSN determination in recently added test

  2. BRIN: mask BRIN_EVACUATE_PAGE for WAL consistency checking