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

Function explain_ExecutorFinish

contrib/auto_explain/auto_explain.c:365–381  ·  view source on GitHub ↗

* ExecutorFinish hook: all we need do is track nesting depth */

Source from the content-addressed store, hash-verified

363 * ExecutorFinish hook: all we need do is track nesting depth
364 */
365static void
366explain_ExecutorFinish(QueryDesc *queryDesc)
367{
368 nesting_level++;
369 PG_TRY();
370 {
371 if (prev_ExecutorFinish)
372 prev_ExecutorFinish(queryDesc);
373 else
374 standard_ExecutorFinish(queryDesc);
375 }
376 PG_FINALLY();
377 {
378 nesting_level--;
379 }
380 PG_END_TRY();
381}
382
383/*
384 * ExecutorEnd hook: log results if needed

Callers

nothing calls this directly

Calls 1

standard_ExecutorFinishFunction · 0.85

Tested by

no test coverage detected