| 371 | */ |
| 372 | #ifndef FRONTEND |
| 373 | static inline Datum |
| 374 | ExecEvalExprSwitchContext(ExprState *state, |
| 375 | ExprContext *econtext, |
| 376 | bool *isNull) |
| 377 | { |
| 378 | Datum retDatum; |
| 379 | MemoryContext oldContext; |
| 380 | |
| 381 | oldContext = MemoryContextSwitchTo(econtext->ecxt_per_tuple_memory); |
| 382 | retDatum = state->evalfunc(state, econtext, isNull); |
| 383 | MemoryContextSwitchTo(oldContext); |
| 384 | return retDatum; |
| 385 | } |
| 386 | #endif |
| 387 | |
| 388 | /* |