79 if (pgstat_track_functions <= fcinfo->flinfo->fn_stats)
118 errmsg(
"function call to dropped function"));
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define INSTR_TIME_SET_CURRENT(t)
#define INSTR_TIME_ADD(x, y)
#define INSTR_TIME_SUBTRACT(x, y)
#define INSTR_TIME_GET_MICROSEC(t)
void AcceptInvalidationMessages(void)
PgStat_EntryRef * pgstat_fetch_pending_entry(PgStat_Kind kind, Oid dboid, uint64 objid)
void * pgstat_fetch_entry(PgStat_Kind kind, Oid dboid, uint64 objid)
PgStat_EntryRef * pgstat_prep_pending_entry(PgStat_Kind kind, Oid dboid, uint64 objid, bool *created_entry)
#define PGSTAT_KIND_FUNCTION
void pgstat_drop_function(Oid proid)
void pgstat_init_function_usage(FunctionCallInfo fcinfo, PgStat_FunctionCallUsage *fcu)
int pgstat_track_functions
PgStat_StatFuncEntry * pgstat_fetch_stat_funcentry(Oid func_id)
void pgstat_end_function_usage(PgStat_FunctionCallUsage *fcu, bool finalize)
void pgstat_create_function(Oid proid)
static instr_time total_func_time
bool pgstat_function_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)
PgStat_FunctionCounts * find_funcstat_entry(Oid func_id)
bool pgstat_drop_entry(PgStat_Kind kind, Oid dboid, uint64 objid)
void pgstat_unlock_entry(PgStat_EntryRef *entry_ref)
bool pgstat_lock_entry(PgStat_EntryRef *entry_ref, bool nowait)
void pgstat_drop_transactional(PgStat_Kind kind, Oid dboid, uint64 objid)
void pgstat_create_transactional(PgStat_Kind kind, Oid dboid, uint64 objid)
static Datum ObjectIdGetDatum(Oid X)
PgStat_StatFuncEntry stats
PgStatShared_Common * shared_stats
PgStat_FunctionCounts * fs
instr_time save_f_total_time
PgStat_Counter total_time
#define SearchSysCacheExists1(cacheId, key1)