forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit778e78a
committed
Fix accumulation of parallel worker instrumentation.
When a Gather or Gather Merge node is started and stopped multipletimes, the old code wouldn't reset the shared state between executions,potentially resulting in dramatically inflated instrumentation datafor 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.com1 parentff14730 commit778e78a
File tree
3 files changed
+66
-13
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+66
-13
lines changedLines changed: 38 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
612 | 612 |
| |
613 | 613 |
| |
614 | 614 |
| |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
615 | 628 |
| |
616 | 629 |
| |
617 | 630 |
| |
| |||
699 | 712 |
| |
700 | 713 |
| |
701 | 714 |
| |
702 |
| - | |
703 |
| - | |
704 |
| - | |
705 |
| - | |
706 |
| - | |
707 |
| - | |
708 |
| - | |
709 |
| - | |
710 |
| - | |
711 |
| - | |
712 |
| - | |
713 |
| - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
714 | 735 |
| |
715 | 736 |
| |
716 |
| - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
717 | 742 |
| |
718 | 743 |
| |
719 | 744 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
| 303 | + | |
303 | 304 |
| |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
304 | 325 |
| |
305 | 326 |
| |
306 | 327 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
119 | 120 |
| |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
120 | 127 |
| |
121 | 128 |
| |
122 | 129 |
| |
|
0 commit comments
Comments
(0)