1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

pgstat: rename pgstat_initstats() to pgstat_relation_init().

The old name was overly generic. An upcoming commit moves relation stats
handling into its own file, making pgstat_initstats() look even more out of
place.

Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220303021600.hs34ghqcw6zcokdh@alap3.anarazel.de
This commit is contained in:
Andres Freund
2022-03-20 19:12:09 -07:00
parent 8363102009
commit bff258a273
3 changed files with 6 additions and 6 deletions

View File

@ -1102,7 +1102,7 @@ extern void pgstat_initialize(void);
extern PgStat_TableStatus *find_tabstat_entry(Oid rel_id);
extern PgStat_BackendFunctionEntry *find_funcstat_entry(Oid func_id);
extern void pgstat_initstats(Relation rel);
extern void pgstat_relation_init(Relation rel);
#define pgstat_relation_should_count(rel) \
(likely((rel)->pgstat_info != NULL))