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

Function explain_ExecutorRun

contrib/auto_explain/auto_explain.c:343–360  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

341 * ExecutorRun hook: all we need do is track nesting depth
342 */
343static void
344explain_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction,
345 uint64 count, bool execute_once)
346{
347 nesting_level++;
348 PG_TRY();
349 {
350 if (prev_ExecutorRun)
351 prev_ExecutorRun(queryDesc, direction, count, execute_once);
352 else
353 standard_ExecutorRun(queryDesc, direction, count, execute_once);
354 }
355 PG_FINALLY();
356 {
357 nesting_level--;
358 }
359 PG_END_TRY();
360}
361
362/*
363 * ExecutorFinish hook: all we need do is track nesting depth

Callers

nothing calls this directly

Calls 1

standard_ExecutorRunFunction · 0.85

Tested by

no test coverage detected