Why we need to check for local buffers in BufferIsExclusiveLocked and BufferIsDirty?

Srinath Reddy Sadipiralla <srinath.reddy@zohocorp.com>

From: Srinath Reddy Sadipiralla <srinath.reddy@zohocorp.com>
To: "pgsql-hackers" <pgsql-hackers@lists.postgresql.org>, "pgsql" <pgsql@j-davis.com>
Date: 2024-12-05T13:08:16Z
Lists: pgsql-hackers

Attachments

Hi,

Why we need to check for local buffers in BufferIsExclusiveLocked and BufferIsDirty?,these 2 functions are called only from XlogRegisterBuffer,AFAIK which will be called only for permanent relations.Please correct me if i am wrong.

Regards,
Srinath Reddy Sadipiralla
Member of Technical Staff
Zoho
 

Commits

  1. Make BufferIsExclusiveLocked and BufferIsDirty work for local buffers.