Re: BUG #19909: BRIN redo: BufferIsPinned assert in brin_xlog_insert_update() if index was dropped or truncated

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: hackerzheng666(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19909: BRIN redo: BufferIsPinned assert in brin_xlog_insert_update() if index was dropped or truncated
Date: 2026-11-30 04:21:23
Message-ID: CAGRkXqShwyon2vmZZHHW8zzcyqmSkn+PRFW8RS7ZGKTaJAgxWQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi hacker,

Thanks for the detailed report, I can reproduce it.

It is more than an assertion. On macOS arm64, non-assert builds of 16
through 19 fail with SIGBUS in recovery and cannot start.

Attached is the fix you suggested, and it applies to 15 through 19 as
is.

Thanks,
Shihao

Attachment Content-Type Size
v1-0001-Fix-BRIN-redo-of-insertion-into-a-missing-page.patch application/octet-stream 995 bytes

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kirill Reshke 2026-11-30 04:37:11 Re: btree_gist: <-> fails on same-sign infinite intervals
Previous Message shihao zhong 2026-11-30 04:06:42 Re: BUG #19941: Acknowledged INSERT lost after a simple Query inside an extended-protocol batch (XX000)