pgsql: Improve comments in slru.{c,h} about segment name format - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Improve comments in slru.{c,h} about segment name format
Date
Msg-id E1sWAN5-000pBp-5V@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve comments in slru.{c,h} about segment name format

slru.h described incorrectly how SLRU segment names are formatted
depending on the segment number and if long or short segment names are
used.  This commit closes the gap with a better description, fitting
with the reality.

Reported-by: Noah Misch
Author: Aleksander Alekseev
Discussion: https://postgr.es/m/20240626002747.dc.nmisch@google.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ffb0603929617f39d449e942abe96cdba36e7545

Modified Files
--------------
src/backend/access/transam/slru.c | 15 +++++++++++++++
src/include/access/slru.h         |  7 +++----
2 files changed, 18 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Replace remaining strtok() with strtok_r()
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Get rid of a global variable