119#define WALSTAT_ACC(fld, var_to_add) \
120 (stats_shmem->stats.fld += var_to_add.fld)
121#define WALSTAT_ACC_INSTR_TIME(fld) \
122 (stats_shmem->stats.fld += INSTR_TIME_GET_MICROSEC(PendingWalStats.fld))
131#undef WALSTAT_ACC_INSTR_TIME
189 memset(&stats_shmem->
stats, 0,
sizeof(stats_shmem->
stats));
#define Assert(condition)
#define MemSet(start, val, len)
bool IsPostmasterEnvironment
void WalUsageAccumDiff(WalUsage *dst, const WalUsage *add, const WalUsage *sub)
bool LWLockAcquire(LWLock *lock, LWLockMode mode)
void LWLockRelease(LWLock *lock)
void LWLockInitialize(LWLock *lock, int tranche_id)
bool LWLockConditionalAcquire(LWLock *lock, LWLockMode mode)
void pgstat_snapshot_fixed(PgStat_Kind kind)
PgStat_LocalState pgStatLocal
void pgstat_flush_io(bool nowait)
void pgstat_flush_wal(bool nowait)
#define WALSTAT_ACC(fld, var_to_add)
void pgstat_wal_reset_all_cb(TimestampTz ts)
void pgstat_wal_init_shmem_cb(void *stats)
void pgstat_report_wal(bool force)
void pgstat_wal_init_backend_cb(void)
bool pgstat_wal_flush_cb(bool nowait)
static WalUsage prevWalUsage
bool pgstat_wal_have_pending_cb(void)
void pgstat_wal_snapshot_cb(void)
PgStat_PendingWalStats PendingWalStats
PgStat_WalStats * pgstat_fetch_stat_wal(void)
#define WALSTAT_ACC_INSTR_TIME(fld)
PgStat_ShmemControl * shmem
TimestampTz stat_reset_timestamp