34#include "wait_event_funcs_data.c"
48#define PG_GET_WAIT_EVENTS_COLS 3
50 char **waiteventnames;
73 for (
int idx = 0;
idx < nbwaitevents;
idx++)
85 "Waiting for custom wait event \"%s\" defined by extension module",
97 for (
int idx = 0;
idx < nbwaitevents;
idx++)
109 "Waiting for injection point \"%s\"",
110 waiteventnames[
idx]);
Datum idx(PG_FUNCTION_ARGS)
static Datum values[MAXATTR]
#define CStringGetTextDatum(s)
void InitMaterializedSRF(FunctionCallInfo fcinfo, bits32 flags)
void appendStringInfo(StringInfo str, const char *fmt,...)
void initStringInfo(StringInfo str)
Tuplestorestate * setResult
void tuplestore_putvalues(Tuplestorestate *state, TupleDesc tdesc, const Datum *values, const bool *isnull)
char ** GetWaitEventCustomNames(uint32 classId, int *nwaitevents)
#define PG_WAIT_INJECTIONPOINT
#define PG_WAIT_EXTENSION
static const struct @21 waitEventData[]
#define PG_GET_WAIT_EVENTS_COLS
Datum pg_get_wait_events(PG_FUNCTION_ARGS)