#define PGSTAT_FILE_FORMAT_ID 0x01A5BCA6
-/*
- * Archiver statistics kept in the stats collector
- */
typedef struct PgStat_ArchiverStats
{
PgStat_Counter archived_count; /* archival successes */
TimestampTz stat_reset_timestamp;
} PgStat_ArchiverStats;
-/*
- * Background writer statistics kept in the stats collector
- */
typedef struct PgStat_BgWriterStats
{
PgStat_Counter buf_written_clean;
TimestampTz stat_reset_timestamp;
} PgStat_BgWriterStats;
-/*
- * Checkpointer statistics kept in the stats collector
- */
typedef struct PgStat_CheckpointerStats
{
TimestampTz stats_timestamp; /* time of stats file update */
PgStat_Counter buf_fsync_backend;
} PgStat_CheckpointerStats;
-/* ----------
- * PgStat_StatDBEntry The collector's data per database
- * ----------
- */
typedef struct PgStat_StatDBEntry
{
Oid databaseid;
HTAB *functions;
} PgStat_StatDBEntry;
-/* ----------
- * PgStat_StatFuncEntry The collector's data per function
- * ----------
- */
typedef struct PgStat_StatFuncEntry
{
Oid functionid;
PgStat_Counter f_self_time;
} PgStat_StatFuncEntry;
-/*
- * Global statistics kept in the stats collector
- */
typedef struct PgStat_GlobalStats
{
TimestampTz stats_timestamp; /* time of stats file update */
PgStat_BgWriterStats bgwriter;
} PgStat_GlobalStats;
-/*
- * Replication slot statistics kept in the stats collector
- */
typedef struct PgStat_StatReplSlotEntry
{
NameData slotname;
TimestampTz stat_reset_timestamp;
} PgStat_StatReplSlotEntry;
-/*
- * SLRU statistics kept in the stats collector
- */
typedef struct PgStat_SLRUStats
{
PgStat_Counter blocks_zeroed;
TimestampTz stat_reset_timestamp;
} PgStat_SLRUStats;
-/*
- * Subscription statistics kept in the stats collector.
- */
typedef struct PgStat_StatSubEntry
{
Oid subid; /* hash key (must be first) */
TimestampTz stat_reset_timestamp;
} PgStat_StatSubEntry;
-/* ----------
- * PgStat_StatTabEntry The collector's data per table (or index)
- * ----------
- */
typedef struct PgStat_StatTabEntry
{
Oid tableid;
PgStat_Counter autovac_analyze_count;
} PgStat_StatTabEntry;
-/*
- * WAL statistics kept in the stats collector
- */
typedef struct PgStat_WalStats
{
PgStat_Counter wal_records;