summaryrefslogtreecommitdiff
path: root/src/include/access
diff options
context:
space:
mode:
authorMichael Paquier2024-07-23 07:54:51 +0000
committerMichael Paquier2024-07-23 07:54:51 +0000
commitffb0603929617f39d449e942abe96cdba36e7545 (patch)
treed2c4086871cf93d0d0c5accaa84b935b53666680 /src/include/access
parent65504b747f3c217dfa91297db6ea219924a3fa8a (diff)
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
Diffstat (limited to 'src/include/access')
-rw-r--r--src/include/access/slru.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/access/slru.h b/src/include/access/slru.h
index 8a8d1918733..97e612cd100 100644
--- a/src/include/access/slru.h
+++ b/src/include/access/slru.h
@@ -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;