pgsql: Improve comment of pgstat_read_statsfile()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve comment of pgstat_read_statsfile()
Date: 2024-07-12 00:37:12
Message-ID: E1sS4Hg-001JZ8-58@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)ip-10-97-1-34(dot)eu-west-3(dot)compute(dot)internal

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/72c0b24b2ddd2d2a2b85d19222845c8c7ae3cbdb

Modified Files
--------------
src/backend/utils/activity/pgstat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2024-07-12 00:56:23 pgsql: Disable clang 16's -Wcast-function-type-strict.
Previous Message Tom Lane 2024-07-11 17:21:20 pgsql: Improve logical replication connection-failure messages.