Old BufferDesc refcount in PrintBufferDescs and PrintPinnedBufs

From: Jacob Brazeal <jacob(dot)brazeal(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Old BufferDesc refcount in PrintBufferDescs and PrintPinnedBufs
Date: 2025-01-17 22:11:56
Message-ID: CA+COZaB+9CN_f63PPRoVhHjYmCwwmb_9CWLxqCJdMWDqs1a-JA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In bufmgr.c we have the debugging functions PrintBufferDescs
and PrintPinnedBufs, which are typically hidden behind the flag
#ifdef NOT_USED. These functions reference the old buf->refcount and
buf->flags fields, and so they no longer compile. I attached a patch to
use BUF_STATE_GET_REFCOUNT instead and removed the reference to buf->flags.

Regards,
Jacob Brazeal

Attachment Content-Type Size
trial.patch application/octet-stream 2.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2025-01-17 23:21:43 Re: Remove XLogRecGetFullXid() in xlogreader.c?
Previous Message Marcos Pegoraro 2025-01-17 21:54:17 Re: Fwd: Re: proposal: schema variables