pgsql: Rename BufferAccessStrategyData.ring_size to nbuffers

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename BufferAccessStrategyData.ring_size to nbuffers
Date: 2023-04-03 11:32:03
Message-ID: E1pjIPp-0019Lq-SF@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename BufferAccessStrategyData.ring_size to nbuffers

The new name better reflects what the field is - the size of the buffers[]
array. ring_size sounded more like it is in units of bytes.

An upcoming commit allows a BufferAccessStrategy of custom sizes, so it
seems relevant to improve this beforehand.

Author: Melanie Plageman
Reviewed-by: David Rowley
Discussion: https://postgr.es/m/CAAKRu_YefVbhg4rAxU2frYFdTap61UftH-kUNQZBvAs%2BYK81Zg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8d928e3a9fe7577e7abf2388b60cc67ed94f6d24

Modified Files
--------------
src/backend/storage/buffer/freelist.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2023-04-03 13:56:17 pgsql: Revert 11470f544e
Previous Message David Rowley 2023-04-03 11:07:02 pgsql: Disable vacuum's use of a buffer access strategy during failsafe