pgsql: Rename fields in pgstat structures for functions and relations - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Rename fields in pgstat structures for functions and relations
Date
Msg-id E1pfUfZ-0053y8-TV@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Implement find_my_exec()'s path normalization using realpath(3).
Next
From: Michael Paquier
Date:
Subject: pgsql: Rewrite error message related to sslmode in libpq