#include "postgres.h"
#include "fmgr.h"
#include "common/hashfn.h"
#include "injection_stats.h"
#include "pgstat.h"
#include "utils/builtins.h"
#include "utils/pgstat_internal.h"
Go to the source code of this file.
Definition at line 58 of file injection_stats.c.
Definition at line 63 of file injection_stats.c.
Definition at line 206 of file injection_stats.c.
References PG_RETURN_INT64, pgstat_get_entry_count(), and PGSTAT_KIND_INJECTION.
Definition at line 223 of file injection_stats.c.
References match_inj_entries(), PG_RETURN_VOID, and pgstat_drop_matching_entries().
Definition at line 189 of file injection_stats.c.
References name, PgStat_StatInjEntry::numcalls, PG_GETARG_TEXT_PP, PG_RETURN_INT64, PG_RETURN_NULL, pgstat_fetch_stat_injentry(), and text_to_cstring().
Definition at line 72 of file injection_stats.c.
References PgStat_StatInjEntry::numcalls, PgStat_EntryRef::pending, pgstat_lock_entry(), pgstat_unlock_entry(), PgStat_EntryRef::shared_stats, and PgStatShared_InjectionPoint::stats.
Definition at line 213 of file injection_stats.c.
References PgStatShared_HashEntry::key, PgStat_HashKey::kind, and PGSTAT_KIND_INJECTION.
Referenced by injection_points_stats_drop().
Definition at line 125 of file injection_stats.c.
References inj_stats_enabled, inj_stats_loaded, InvalidOid, name, PGSTAT_INJ_IDX, PGSTAT_KIND_INJECTION, pgstat_prep_pending_entry(), PgStat_EntryRef::shared_stats, and PgStatShared_InjectionPoint::stats.
Referenced by injection_points_attach().
Definition at line 147 of file injection_stats.c.
References inj_stats_enabled, inj_stats_loaded, InvalidOid, name, pgstat_drop_entry(), PGSTAT_INJ_IDX, PGSTAT_KIND_INJECTION, and pgstat_request_entry_refs_gc().
Referenced by injection_points_cleanup(), and injection_points_detach().
Definition at line 95 of file injection_stats.c.
References inj_stats_enabled, inj_stats_loaded, InvalidOid, name, pgstat_fetch_entry(), PGSTAT_INJ_IDX, and PGSTAT_KIND_INJECTION.
Referenced by injection_points_stats_numcalls().
Definition at line 113 of file injection_stats.c.
References inj_stats_loaded, injection_stats, PGSTAT_KIND_INJECTION, and pgstat_register_kind().
Referenced by _PG_init().
Definition at line 165 of file injection_stats.c.
References inj_stats_enabled, inj_stats_loaded, InvalidOid, name, PgStat_StatInjEntry::numcalls, PgStat_EntryRef::pending, PGSTAT_INJ_IDX, PGSTAT_KIND_INJECTION, and pgstat_prep_pending_entry().
Referenced by injection_error(), injection_notice(), and injection_wait().
Definition at line 66 of file injection_stats.c.
Referenced by pgstat_create_inj(), pgstat_drop_inj(), pgstat_fetch_stat_injentry(), pgstat_register_inj(), and pgstat_report_inj().
Definition at line 39 of file injection_stats.c.
Referenced by pgstat_register_inj().