PostgreSQL Source Code  git master
PgStat_KindInfo Struct Reference

#include <pgstat_internal.h>

Data Fields

bool fixed_amount:1
 
bool accessed_across_databases:1
 
uint32 shared_size
 
uint32 snapshot_ctl_off
 
uint32 shared_ctl_off
 
uint32 shared_data_off
 
uint32 shared_data_len
 
uint32 pending_size
 
void(* init_backend_cb )(void)
 
bool(* flush_pending_cb )(PgStat_EntryRef *sr, bool nowait)
 
void(* delete_pending_cb )(PgStat_EntryRef *sr)
 
void(* reset_timestamp_cb )(PgStatShared_Common *header, TimestampTz ts)
 
void(* to_serialized_name )(const PgStat_HashKey *key, const PgStatShared_Common *header, NameData *name)
 
bool(* from_serialized_name )(const NameData *name, PgStat_HashKey *key)
 
void(* init_shmem_cb )(void *stats)
 
bool(* flush_fixed_cb )(bool nowait)
 
bool(* have_fixed_pending_cb )(void)
 
void(* reset_all_cb )(TimestampTz ts)
 
void(* snapshot_cb )(void)
 
const char *const name
 

Detailed Description

Definition at line 183 of file pgstat_internal.h.

Field Documentation

◆ accessed_across_databases

bool PgStat_KindInfo::accessed_across_databases

Definition at line 195 of file pgstat_internal.h.

Referenced by pgstat_build_snapshot(), and pgstat_reset().

◆ delete_pending_cb

void(* PgStat_KindInfo::delete_pending_cb) (PgStat_EntryRef *sr)

Definition at line 248 of file pgstat_internal.h.

Referenced by pgstat_delete_pending_entry().

◆ fixed_amount

◆ flush_fixed_cb

bool(* PgStat_KindInfo::flush_fixed_cb) (bool nowait)

Definition at line 274 of file pgstat_internal.h.

Referenced by pgstat_report_stat().

◆ flush_pending_cb

bool(* PgStat_KindInfo::flush_pending_cb) (PgStat_EntryRef *sr, bool nowait)

Definition at line 243 of file pgstat_internal.h.

Referenced by pgstat_flush_pending_entries().

◆ from_serialized_name

bool(* PgStat_KindInfo::from_serialized_name) (const NameData *name, PgStat_HashKey *key)

Definition at line 260 of file pgstat_internal.h.

Referenced by pgstat_read_statsfile().

◆ have_fixed_pending_cb

bool(* PgStat_KindInfo::have_fixed_pending_cb) (void)

Definition at line 280 of file pgstat_internal.h.

Referenced by pgstat_report_stat().

◆ init_backend_cb

void(* PgStat_KindInfo::init_backend_cb) (void)

Definition at line 237 of file pgstat_internal.h.

Referenced by pgstat_initialize().

◆ init_shmem_cb

void(* PgStat_KindInfo::init_shmem_cb) (void *stats)

Definition at line 267 of file pgstat_internal.h.

Referenced by StatsShmemInit().

◆ name

const char* const PgStat_KindInfo::name

Definition at line 293 of file pgstat_internal.h.

Referenced by pgstat_drop_entry_internal(), and pgstat_register_kind().

◆ pending_size

uint32 PgStat_KindInfo::pending_size

Definition at line 231 of file pgstat_internal.h.

Referenced by pgstat_prep_pending_entry().

◆ reset_all_cb

void(* PgStat_KindInfo::reset_all_cb) (TimestampTz ts)

Definition at line 285 of file pgstat_internal.h.

Referenced by pgstat_reset_after_failure(), and pgstat_reset_of_kind().

◆ reset_timestamp_cb

void(* PgStat_KindInfo::reset_timestamp_cb) (PgStatShared_Common *header, TimestampTz ts)

Definition at line 253 of file pgstat_internal.h.

Referenced by shared_stat_reset_contents().

◆ shared_ctl_off

uint32 PgStat_KindInfo::shared_ctl_off

Definition at line 214 of file pgstat_internal.h.

Referenced by pgstat_read_statsfile(), and StatsShmemInit().

◆ shared_data_len

◆ shared_data_off

uint32 PgStat_KindInfo::shared_data_off

Definition at line 222 of file pgstat_internal.h.

Referenced by pgstat_get_entry_data(), and pgstat_read_statsfile().

◆ shared_size

uint32 PgStat_KindInfo::shared_size

◆ snapshot_cb

void(* PgStat_KindInfo::snapshot_cb) (void)

Definition at line 290 of file pgstat_internal.h.

Referenced by pgstat_build_snapshot(), and pgstat_build_snapshot_fixed().

◆ snapshot_ctl_off

uint32 PgStat_KindInfo::snapshot_ctl_off

Definition at line 208 of file pgstat_internal.h.

Referenced by pgstat_write_statsfile().

◆ to_serialized_name

void(* PgStat_KindInfo::to_serialized_name) (const PgStat_HashKey *key, const PgStatShared_Common *header, NameData *name)

Definition at line 258 of file pgstat_internal.h.

Referenced by pgstat_write_statsfile().


The documentation for this struct was generated from the following file: