Thread: pgsql: Rename fields in pgstat structures for functions and relations

pgsql: Rename fields in pgstat structures for functions and relations

From
Michael Paquier
Date:
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(-)