pgstat: split relation, database handling out of pgstat_report_stat().
authorAndres Freund <andres@anarazel.de>
Sat, 19 Mar 2022 18:32:18 +0000 (11:32 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 19 Mar 2022 18:42:22 +0000 (11:42 -0700)
commit89c546c2948904a2c811ccb26d92fb54edaf7821
tree3758a0eaee8a6061b87aff450c03aed7ef9befca
parenta3a75b982b5bb6fba95ad8b3d48e70439dcd2329
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
src/backend/postmaster/pgstat.c