* IsInParallelMode * * Are we in a parallel operation, as either the leader or a worker? Check * this to prohibit operations that change backend-local state expected to * match across all workers. Mere caches usually don't require such a * restriction. State modified in a strict push/pop fashion, such as the * active snapshot stack, is often fine. */
| 1287 | * active snapshot stack, is often fine. |
| 1288 | */ |
| 1289 | bool |
| 1290 | IsInParallelMode(void) |
| 1291 | { |
| 1292 | return CurrentTransactionState->parallelModeLevel != 0; |
| 1293 | } |
| 1294 | |
| 1295 | /* |
| 1296 | * CommandCounterIncrement |
no outgoing calls
no test coverage detected