On Fri, Jul 6, 2018 at 9:44 AM, Amit Kapila <amit.kapil...@gmail.com> wrote: > I have tried this idea, but it doesn't completely solve the problem. > The problem is that nodes below LIMIT won't get a chance to accumulate > the stats as they won't be able to call InstrStopNode.
I'm not sure I understand. Why not? I see that we'd need to insert an extra call to InstrStopNode() if we were stopping the node while it was running, because then InstrStartNode() would have already been done, but the corresponding call to InstrStopNode() would not have been done. But I'm not sure how that would happen in this case. Can you explain further? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company