diff options
| author | Michael Paquier | 2024-07-23 07:55:09 +0000 |
|---|---|---|
| committer | Michael Paquier | 2024-07-23 07:55:09 +0000 |
| commit | 3b279d89cb5c86fa7ac6faaebb3ddadb2dbe0ca8 (patch) | |
| tree | 7393a15dc085bae735a7ff0728b412492135bd1f /src/include | |
| parent | db46016304dc1f9ea402eee6d392f704050467df (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')
| -rw-r--r-- | src/include/access/slru.h | 7 |
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; |
