Re: BUG #19006: Assert(BufferIsPinned) in BufferGetBlockNumber() is triggered for forwarded buffer

From: Xuneng Zhou <xunengzhou(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: exclusion(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, Michael Paquier <michael(at)paquier(dot)xyz>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: BUG #19006: Assert(BufferIsPinned) in BufferGetBlockNumber() is triggered for forwarded buffer
Date: 2025-08-07 15:09:34
Message-ID: CABPTF7WmR2E+1hAS1ZagBi4c23q6jdRJ8wh1q7XK2Cb2JZYVdw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On Tue, Aug 5, 2025 at 12:29 PM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>
> Here's my proposed fix. Great reproducer, Alexander, thanks!

I tested the fix, it works well now. I tried to review the code logic
but found it hard to figure out this line on my own due to the
unfamiliarity with this module currently:

stream->buffers[stream->queue_size + stream->oldest_buffer_index] =

InvalidBuffer;

Could you please elaborate on it a little bit more? Thanks.

Best,
Xuneng

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Masahiko Sawada 2025-08-07 17:29:41 Re: TRAP: failed Assert("outerPlan != NULL") in postgres_fdw.c
Previous Message Dilip Kumar 2025-08-07 13:48:19 Re: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database