1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

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
This commit is contained in:
Michael Paquier
2024-07-23 16:54:51 +09:00
parent 65504b747f
commit ffb0603929
2 changed files with 18 additions and 4 deletions

View File

@ -134,10 +134,9 @@ typedef struct SlruCtlData
bits16 bank_mask;
/*
* If true, use long segment filenames formed from lower 48 bits of the
* segment number, e.g. pg_xact/000000001234. Otherwise, use short
* filenames formed from lower 16 bits of the segment number e.g.
* pg_xact/1234.
* If true, use long segment file names. Otherwise, use short file names.
*
* For details about the file name format, see SlruFileName().
*/
bool long_segment_names;