fschopp/madlib — comment on commit 2f268443a2439b648bf14f9b288e37758b8e5c67
File: methods/kmeans/src/pg_gp/kmeans.c line 192
By haradh1:

When the parent context is delete, yes, you're right. But I suspect per-tuple-memory is only "reset" during interation which doesn't delete child contexts. I'm looking at ExecScan()