forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c09a5c
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 parent5bcf389 commit2c09a5c
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 | |
---|---|---|---|
| |||
808 | 808 |
| |
809 | 809 |
| |
810 | 810 |
| |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
811 | 824 |
| |
812 | 825 |
| |
813 | 826 |
| |
| |||
925 | 938 |
| |
926 | 939 |
| |
927 | 940 |
| |
928 |
| - | |
929 |
| - | |
930 |
| - | |
931 |
| - | |
932 |
| - | |
933 |
| - | |
934 |
| - | |
935 |
| - | |
936 |
| - | |
937 |
| - | |
938 |
| - | |
939 |
| - | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
940 | 961 |
| |
941 | 962 |
| |
942 |
| - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
943 | 968 |
| |
944 | 969 |
| |
945 | 970 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
| 381 | + | |
381 | 382 |
| |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
382 | 403 |
| |
383 | 404 |
| |
384 | 405 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
| 152 | + | |
152 | 153 |
| |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
153 | 160 |
| |
154 | 161 |
| |
155 | 162 |
| |
|
0 commit comments
Comments
(0)