Move block_range_read_stream_cb batchmode comment

From: Arseniy Mukhin <arseniy(dot)mukhin(dot)dev(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Move block_range_read_stream_cb batchmode comment
Date: 2025-08-30 17:33:09
Message-ID: CAE7r3M+P1Qcv7CYxi=Jw_d40L=sVRAxdDti-Vo4X5x0opZ3XVw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Currently, each usage of block_range_read_stream_cb is accompanied by
the same comment about the safety of using batchmode (there are 7
identical comments)

/*
* It is safe to use batchmode as block_range_read_stream_cb takes no
* locks.
*/

The idea is to write it once near block_range_read_stream_cb and drop
all duplicates. PFA the small patch that does this.

Best regards,
Arseniy Mukhin

Attachment Content-Type Size
v1-0001-Moves-the-comment-about-block_range_read_stream_c.patch text/x-patch 5.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2025-08-30 17:50:56 Re: Adding REPACK [concurrently]
Previous Message Tom Lane 2025-08-30 16:52:45 Re: PG 18 relnotes and RC1