mirror of https://github.com/citusdata/citus.git
Free per-tuple COPY memory in INSERT...SELECT
parent
b0df3a6746
commit
cbe16169b4
|
@ -2010,6 +2010,14 @@ CitusCopyDestReceiverReceive(TupleTableSlot *slot, DestReceiver *dest)
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue