mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
pgstat: move transactional code into pgstat_xact.c.
The transactional integration code is largely independent from the rest of pgstat.c. Subsequent commits will add more related code. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220404041516.cctrvpadhuriawlq@alap3.anarazel.de
This commit is contained in:
@@ -77,7 +77,6 @@ static const char *const slru_names[] = {
|
||||
* Functions in pgstat.c
|
||||
*/
|
||||
|
||||
extern PgStat_SubXactStatus *pgstat_xact_stack_level_get(int nest_level);
|
||||
extern void pgstat_setheader(PgStat_MsgHdr *hdr, StatMsgType mtype);
|
||||
extern void pgstat_send(void *msg, int len);
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
@@ -129,6 +128,13 @@ extern void pgstat_wal_initialize(void);
|
||||
extern bool pgstat_wal_pending(void);
|
||||
|
||||
|
||||
/*
|
||||
* Functions in pgstat_xact.c
|
||||
*/
|
||||
|
||||
extern PgStat_SubXactStatus *pgstat_xact_stack_level_get(int nest_level);
|
||||
|
||||
|
||||
/*
|
||||
* Variables in pgstat.c
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user