PostgreSQL Source Code git master
PgStat_KindInfo Struct Reference

#include <pgstat_internal.h>

Data Fields

bool fixed_amount:1
 
bool accessed_across_databases:1
 
bool write_to_file:1
 
bool track_entry_count: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(* to_serialized_data )(const PgStat_HashKey *key, const PgStatShared_Common *header, FILE *statfile)
 
bool(* from_serialized_data )(const PgStat_HashKey *key, PgStatShared_Common *header, FILE *statfile)
 
void(* finish )(PgStat_StatsFileOp status)
 
void(* init_shmem_cb )(void *stats)
 
bool(* flush_static_cb )(bool nowait)
 
void(* reset_all_cb )(TimestampTz ts)
 
void(* snapshot_cb )(void)
 
const char *const name
 

Detailed Description

Definition at line 231 of file pgstat_internal.h.

Field Documentation

◆ accessed_across_databases

bool PgStat_KindInfo::accessed_across_databases

Definition at line 243 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 306 of file pgstat_internal.h.

Referenced by pgstat_delete_pending_entry().

◆ finish

void(* PgStat_KindInfo::finish) (PgStat_StatsFileOp status)

◆ fixed_amount

◆ flush_pending_cb

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

Definition at line 301 of file pgstat_internal.h.

Referenced by pgstat_flush_pending_entries().

◆ flush_static_cb

bool(* PgStat_KindInfo::flush_static_cb) (bool nowait)

Definition at line 370 of file pgstat_internal.h.

Referenced by pgstat_report_stat().

◆ from_serialized_data

bool(* PgStat_KindInfo::from_serialized_data) (const PgStat_HashKey *key, PgStatShared_Common *header, FILE *statfile)

Definition at line 338 of file pgstat_internal.h.

Referenced by pgstat_read_statsfile().

◆ from_serialized_name

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

Definition at line 318 of file pgstat_internal.h.

Referenced by pgstat_read_statsfile().

◆ init_backend_cb

void(* PgStat_KindInfo::init_backend_cb) (void)

Definition at line 294 of file pgstat_internal.h.

Referenced by pgstat_initialize().

◆ init_shmem_cb

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

Definition at line 358 of file pgstat_internal.h.

Referenced by StatsShmemInit().

◆ name

const char* const PgStat_KindInfo::name

Definition at line 383 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 288 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 375 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 311 of file pgstat_internal.h.

Referenced by shared_stat_reset_contents().

◆ shared_ctl_off

uint32 PgStat_KindInfo::shared_ctl_off

Definition at line 271 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 279 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 380 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 265 of file pgstat_internal.h.

Referenced by pgstat_write_statsfile().

◆ to_serialized_data

void(* PgStat_KindInfo::to_serialized_data) (const PgStat_HashKey *key, const PgStatShared_Common *header, FILE *statfile)

Definition at line 335 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 316 of file pgstat_internal.h.

Referenced by pgstat_write_statsfile().

◆ track_entry_count

bool PgStat_KindInfo::track_entry_count

Definition at line 252 of file pgstat_internal.h.

Referenced by pgstat_init_entry(), pgstat_register_kind(), and StatsShmemInit().

◆ write_to_file

bool PgStat_KindInfo::write_to_file

Definition at line 246 of file pgstat_internal.h.

Referenced by pgstat_write_statsfile().


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