mirror of https://github.com/citusdata/citus.git
Merge pull request #1643 from citusdata/fix_insert_select_memory
Free per-tuple COPY memory in INSERT...SELECT via coordinatorpull/1648/head
commit
f5361d52e7
|
@ -2010,6 +2010,14 @@ CitusCopyDestReceiverReceive(TupleTableSlot *slot, DestReceiver *dest)
|
||||||
|
|
||||||
copyDest->tuplesSent++;
|
copyDest->tuplesSent++;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Release per tuple memory allocated in this function. If we're writing
|
||||||
|
* the results of an INSERT ... SELECT then the SELECT execution will use
|
||||||
|
* its own executor state and reset the per tuple expression context
|
||||||
|
* separately.
|
||||||
|
*/
|
||||||
|
ResetPerTupleExprContext(executorState);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue