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

From: Srinath Reddy Sadipiralla <srinath(dot)reddy(at)zohocorp(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "pgsql" <pgsql(at)j-davis(dot)com>
Subject: Why we need to check for local buffers in BufferIsExclusiveLocked and BufferIsDirty?
Date: 2024-12-05 13:08:16
Message-ID: 19396ef77f8.1098c4a1810508.2255483659262451647@zohocorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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
 

Attachment Content-Type Size
0001-Ref-remove-local-buffer-checks.patch application/octet-stream 1.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2024-12-05 13:13:30 Re: Pass ParseState as down to utility functions.
Previous Message Alvaro Herrera 2024-12-05 12:46:48 Re: code contributions for 2024, WIP version