Entry to a plan node */
| 91 | |
| 92 | /* Entry to a plan node */ |
| 93 | void |
| 94 | InstrStartNode(Instrumentation *instr) |
| 95 | { |
| 96 | if (instr->need_timer && |
| 97 | !INSTR_TIME_SET_CURRENT_LAZY(instr->starttime)) |
| 98 | elog(ERROR, "InstrStartNode called twice in a row"); |
| 99 | |
| 100 | /* save buffer usage totals at node entry, if needed */ |
| 101 | if (instr->need_bufusage) |
| 102 | instr->bufusage_start = pgBufferUsage; |
| 103 | |
| 104 | if (instr->need_walusage) |
| 105 | instr->walusage_start = pgWalUsage; |
| 106 | } |
| 107 | |
| 108 | /* Exit from a plan node */ |
| 109 | static void |
no outgoing calls
no test coverage detected