MCPcopy Create free account
hub / github.com/apache/cloudberry / PLy_pop_execution_context

Function PLy_pop_execution_context

src/pl/plpython/plpy_main.c:493–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static void
494PLy_pop_execution_context(void)
495{
496 PLyExecutionContext *context = PLy_execution_contexts;
497
498 if (context == NULL)
499 elog(ERROR, "no Python function is currently executing");
500
501 PLy_execution_contexts = context->next;
502
503 if (context->scratch_ctx)
504 MemoryContextDelete(context->scratch_ctx);
505 pfree(context);
506}

Callers 2

plpython_call_handlerFunction · 0.85
plpython_inline_handlerFunction · 0.85

Calls 1

pfreeFunction · 0.50

Tested by

no test coverage detected