OSDN Git Service

Reset the per-output-tuple exprcontext each time through the main loop in
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Aug 2010 21:52:32 +0000 (21:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Aug 2010 21:52:32 +0000 (21:52 +0000)
commit205fc921d727dbe547c6306ee0368f4b2a54d3aa
treed246a741707a10298c0aadb3ed088d3de7209333
parent2eba69addcd716bb159fce6766182c2f667e5b1c
Reset the per-output-tuple exprcontext each time through the main loop in
ExecModifyTable().  This avoids memory leakage when trigger functions leave
junk behind in that context (as they more or less must).  Problem and solution
identified by Dean Rasheed.

I'm a bit concerned about the longevity of this solution --- once a plan can
have multiple ModifyTable nodes, we are very possibly going to have to do
something different.  But it should hold up for 9.0.
src/backend/executor/nodeModifyTable.c