summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2024-07-12 00:31:33 +0000
committerMichael Paquier2024-07-12 00:31:33 +0000
commit72c0b24b2ddd2d2a2b85d19222845c8c7ae3cbdb (patch)
treeb91f75f655bacdb640fc3ca7382c324f4199762d
parent0d8bd0a72ea284ffb1d1154efbe799241cc5edc6 (diff)
Improve comment of pgstat_read_statsfile()
The comment at the top of pgstat_read_statsfile() mentioned that the stats are read from the on-disk file into the pgstats dshash. This is incorrect for fix-numbered stats as these are loaded directly into shared memory. This commit simplifies the comment to be more general. Author: Bertrand Drouvot Discussion: https://postgr.es/m/Zo/[email protected]
-rw-r--r--src/backend/utils/activity/pgstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/activity/pgstat.c b/src/backend/utils/activity/pgstat.c
index c0ec9e8195a..f48b00b86bf 100644
--- a/src/backend/utils/activity/pgstat.c
+++ b/src/backend/utils/activity/pgstat.c
@@ -1495,7 +1495,7 @@ read_chunk(FILE *fpin, void *ptr, size_t len)
#define read_chunk_s(fpin, ptr) read_chunk(fpin, ptr, sizeof(*ptr))
/*
- * Reads in existing statistics file into the shared stats hash.
+ * Reads in existing statistics file into memory.
*
* This function is called in the only process that is accessing the shared
* stats so locking is not required.