Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pg_wait_sampling.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ pg_wait_sampling_get_current(PG_FUNCTION_ARGS)
TEXTOID, -1, 0);
TupleDescInitEntry(tupdesc, (AttrNumber) 4, "queryid",
INT8OID, -1, 0);
#if PG_VERSION_NUM >= 190000
TupleDescFinalize(tupdesc);
#endif

funcctx->tuple_desc = BlessTupleDesc(tupdesc);

Expand Down Expand Up @@ -757,6 +760,9 @@ pg_wait_sampling_get_profile(PG_FUNCTION_ARGS)
INT8OID, -1, 0);
TupleDescInitEntry(tupdesc, (AttrNumber) 5, "count",
INT8OID, -1, 0);
#if PG_VERSION_NUM >= 190000
TupleDescFinalize(tupdesc);
#endif
funcctx->tuple_desc = BlessTupleDesc(tupdesc);

MemoryContextSwitchTo(oldcontext);
Expand Down Expand Up @@ -882,6 +888,9 @@ pg_wait_sampling_get_history(PG_FUNCTION_ARGS)
TEXTOID, -1, 0);
TupleDescInitEntry(tupdesc, (AttrNumber) 5, "queryid",
INT8OID, -1, 0);
#if PG_VERSION_NUM >= 190000
TupleDescFinalize(tupdesc);
#endif
funcctx->tuple_desc = BlessTupleDesc(tupdesc);

MemoryContextSwitchTo(oldcontext);
Expand Down