pgsql: Rename fields in pgstat structures for functions and relations

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Rename fields in pgstat structures for functions and relations
Date: 2023-03-23 23:48:34
Message-ID: E1pfUfZ-0053y8-TV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename fields in pgstat structures for functions and relations

This commit renames the members of a few pgstat structures related to
functions and relations, by respectively removing their prefix "f_" and
"t_". The statistics for functions and relations and handled in their
own file, and pgstatfuncs.c associates each field in a structure
variable named based on the object type handled, so no information is
lost with this rename.

This will help with some of the refactoring aimed for pgstatfuncs.c, as
this makes more consistent the field names with the SQL functions
retrieving them.

Author: Bertrand Drouvot
Reviewed-by: Michael Paquier, Melanie Plageman
Discussion: https://postgr.es/m/9142f62a-a422-145c-bde0-b5bc498a4ada@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8089517ab8b547daab78f404f99eb48fba91ee9d

Modified Files
--------------
src/backend/utils/activity/pgstat_function.c | 46 ++++-----
src/backend/utils/activity/pgstat_relation.c | 138 +++++++++++++--------------
src/backend/utils/adt/pgstatfuncs.c | 38 ++++----
src/include/pgstat.h | 62 ++++++------
4 files changed, 142 insertions(+), 142 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2023-03-24 01:22:41 pgsql: Rewrite error message related to sslmode in libpq
Previous Message Tom Lane 2023-03-23 22:17:56 pgsql: Implement find_my_exec()'s path normalization using realpath(3).