• Robert Haas's avatar
    Fix accumulation of parallel worker instrumentation. · 2c09a5c1
    Robert Haas authored
    When a Gather or Gather Merge node is started and stopped multiple
    times, the old code wouldn't reset the shared state between executions,
    potentially resulting in dramatically inflated instrumentation data
    for nodes beneath it.  (The per-worker instrumentation ended up OK,
    I think, but the overall totals were inflated.)
    
    Report by hubert depesz lubaczewski.  Analysis and fix by Amit Kapila,
    reviewed and tweaked a bit by me.
    
    Discussion: http://postgr.es/m/20171127175631.GA405@depesz.com
    2c09a5c1
execParallel.c 40 KB