* ExecutorRun hook: all we need do is track nesting depth */
| 341 | * ExecutorRun hook: all we need do is track nesting depth |
| 342 | */ |
| 343 | static void |
| 344 | explain_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 |
nothing calls this directly
no test coverage detected