pgqs_collectNodeStats fails to update ancestors before processing sub-plans. It needs to do
ancestors = lcons(planstate, ancestors);
before processing initPlans, and removing the planstate at the end. See how ExplainNode in explain.c (around line 1593) does that, depending on haschildren variable.
pgqs_collectNodeStats fails to update ancestors before processing sub-plans. It needs to do
ancestors = lcons(planstate, ancestors);
before processing initPlans, and removing the planstate at the end. See how ExplainNode in explain.c (around line 1593) does that, depending on haschildren variable.