mirror of https://github.com/citusdata/citus.git
ExecInitResult on scanState->customScanState.ss.ps as pg's nodeCustom initializes with TTSOpsVirtual which is incompatible with tuplestore
parent
ae773c8442
commit
b26422e301
|
@ -162,6 +162,11 @@ CitusBeginScan(CustomScanState *node, EState *estate, int eflags)
|
|||
MarkCitusInitiatedCoordinatorBackend();
|
||||
|
||||
scanState = (CitusScanState *) node;
|
||||
|
||||
#if PG_VERSION_NUM >= 120000
|
||||
ExecInitResultSlot(&scanState->customScanState.ss.ps, &TTSOpsMinimalTuple);
|
||||
#endif
|
||||
|
||||
distributedPlan = scanState->distributedPlan;
|
||||
if (distributedPlan->modLevel == ROW_MODIFY_READONLY ||
|
||||
distributedPlan->insertSelectSubquery != NULL)
|
||||
|
|
|
@ -264,9 +264,9 @@ RangeVarGetRelidInternal(const RangeVar *relation, LOCKMODE lockmode, uint32 fla
|
|||
#define FileWriteCompat FileWrite
|
||||
|
||||
#define fcSetArg(fc, n, argval) \
|
||||
((fc)->args[n].isnull = false, (fc)->args[n].value = (argval))
|
||||
#define fcSetArgNull(fc, n) \
|
||||
((fc)->args[n].isnull = true, (fc)->args[n].value = (Datum) 0)
|
||||
(((fc)->args[n].isnull = false), ((fc)->args[n].value = (argval)))
|
||||
#define fcSetArgNull(fc, n) \
|
||||
(((fc)->args[n].isnull = true), ((fc)->args[n].value = (Datum) 0))
|
||||
|
||||
#else /* pre PG12 */
|
||||
#define QTW_EXAMINE_RTES_BEFORE QTW_EXAMINE_RTES
|
||||
|
|
Loading…
Reference in New Issue