Rename fields in pgstat structures for functions and relations
authorMichael Paquier <[email protected]>
Thu, 23 Mar 2023 23:46:29 +0000 (08:46 +0900)
committerMichael Paquier <[email protected]>
Thu, 23 Mar 2023 23:46:29 +0000 (08:46 +0900)
commit8089517ab8b547daab78f404f99eb48fba91ee9d
tree824d75d11cc4597dc1c2e005e5e56f0f25c3cb88
parent11a0a8b529caeab101206ec4a33af95bb4445746
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
src/backend/utils/activity/pgstat_function.c
src/backend/utils/activity/pgstat_relation.c
src/backend/utils/adt/pgstatfuncs.c
src/include/pgstat.h