Free per-tuple COPY memory in INSERT...SELECT

release-7.0
Marco Slot 2017-09-12 09:51:42 -07:00 committed by Burak Yucesoy
parent 907048ace8
commit 8c0274cba6
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}