BRIN: mask BRIN_EVACUATE_PAGE for WAL consistency checking That bit is unlogged and therefore it's wrong to consider it in WAL page comparison.
Add a test that tickles the case, as branch testing technology allows. This has been a problem ever since wal consistency checking was introduced (commit a507b86900f6 for pg10), so backpatch to all supported branches. Author: 王海洋 (Haiyang Wang) <[email protected]> Reviewed-by: Kyotaro Horiguchi <[email protected]> Discussion: https://postgr.es/m/caccixad2uvlmohc4jx9vvokt7dtylr3oyrbhvoz-jrxtzc_...@mail.gmail.com Discussion: https://postgr.es/m/CACciXADOfErX9Bx0nzE_SkdfXr6Bbpo5R=v_b6muteyw4ya...@mail.gmail.com Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2cff3025906c657297ef7bf323fa715f81d20038 Modified Files -------------- src/backend/access/brin/brin_pageops.c | 7 ++- src/backend/access/brin/brin_xlog.c | 6 +++ src/test/modules/brin/Makefile | 2 +- src/test/modules/brin/t/02_wal_consistency.pl | 75 +++++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 2 deletions(-)
