Re: GetBufferDescriptor() being called for local buffers from MarkBufferDirtyHint()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Cc: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: GetBufferDescriptor() being called for local buffers from MarkBufferDirtyHint()
Date: 2026-07-03 03:08:03
Message-ID: akcnk4FiD8eJsD_0@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jul 03, 2026 at 06:22:12AM +0530, Ayush Tiwari wrote:
> v3 does what you suggested: both GetBufferDescriptor() and
> GetLocalBufferDescriptor() now take a signed int, but only
> GetBufferDescriptor()
> keeps the bounds assertion (id >= 0 && id < NBuffers). I need to
> spend some more time on the GetLocalBufferDescriptor function.

Ah sorry, I have unfortunately missed your point upthread. At least
we are on the same line. :)

I have just applied your v3, let's close this thread.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hayato Kuroda (Fujitsu) 2026-07-03 03:13:08 RE: Re-read subscription state after lock in AlterSubscription
Previous Message Michael Paquier 2026-07-03 03:07:21 Re: GetBufferDescriptor() being called for local buffers from MarkBufferDirtyHint()