Thread: pgsql: pgstat: split relation, database handling out of pgstat_report_s

pgsql: pgstat: split relation, database handling out of pgstat_report_s

From
Andres Freund
Date:
pgstat: split relation, database handling out of pgstat_report_stat().

pgstat_report_stat() handles several types of stats, yet relation stats have
so far been handled directly in pgstat_report_stat().

A later commit will move the handling of the different kinds of stats into
separate files.  By splitting out relation handling in this commit that later
move will just move code around without other changes.

Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/89c546c2948904a2c811ccb26d92fb54edaf7821

Modified Files
--------------
src/backend/postmaster/pgstat.c | 79 +++++++++++++++++++++++++++++------------
1 file changed, 56 insertions(+), 23 deletions(-)