Improve comment of pgstat_read_statsfile()

Michael Paquier <michael@paquier.xyz>

Commit: 72c0b24b2ddd2d2a2b85d19222845c8c7ae3cbdb
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-07-12T00:31:33Z
Releases: 18.0
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/eJIHUcqKxeSgv@ip-10-97-1-34.eu-west-3.compute.internal

Files

PathChange+/−
src/backend/utils/activity/pgstat.c modified +1 −1

Discussion