diff options
Diffstat (limited to 'src/include/pgstat.h')
-rw-r--r-- | src/include/pgstat.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index 0d8427f27d1..f1dfe2b5e91 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -375,15 +375,24 @@ typedef struct PgStat_IO PgStat_BktypeIO stats[BACKEND_NUM_TYPES]; } PgStat_IO; -/* Backend statistics store the same amount of IO data as PGSTAT_KIND_IO */ -typedef PgStat_PendingIO PgStat_BackendPendingIO; - typedef struct PgStat_Backend { TimestampTz stat_reset_timestamp; - PgStat_BktypeIO stats; + PgStat_BktypeIO io_stats; } PgStat_Backend; +/* --------- + * PgStat_BackendPending Non-flushed backend stats. + * --------- + */ +typedef struct PgStat_BackendPending +{ + /* + * Backend statistics store the same amount of IO data as PGSTAT_KIND_IO. + */ + PgStat_PendingIO pending_io; +} PgStat_BackendPending; + typedef struct PgStat_StatDBEntry { PgStat_Counter xact_commit; |