From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Rename fields in pgstat structures for functions and relations
Date: Thu, 23 Mar 2023 23:48:34 +0000
Message-ID: <E1pfUfZ-0053y8-TV@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Rename fields in pgstat structures for functions and relations
In-Reply-To: <E1pfUfZ-0053y8-TV@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox