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.
nodeModifyTable.c (r1.7 -> r22.214.171.124)
pgsql-committers by date
|Next:||From: Robert Haas||Date: 2010-08-19 02:58:37|
|Subject: pgsql: Tidy up a few calls to smrgextend().|
|Previous:||From: Tom Lane||Date: 2010-08-18 21:52:24|
|Subject: pgsql: Reset the per-output-tuple exprcontext each time through the main |