- Notifications
You must be signed in to change notification settings - Fork28
Commit14e9b2a

Amit Kapila
Prohibit pushing subqueries containing window function calculation to
workers.Allowing window function calculation in workers leads to inconsistentresults because if the input row ordering is not fully deterministic, theoutput of window functions might vary across workers. The fix is to treatthem as parallel-restricted.In the passing, improve the coding pattern in max_parallel_hazard_walkerso that it has a chain of mutually-exclusive if ... else if ... else if... else if ... IsA tests.Reported-by: Marko TiikkajaBug: 15324Author: Amit KapilaReviewed-by: Tom LaneBackpatch-through: 9.6Discussion:https://postgr.es/m/CAL9smLAnfPJCDUUG4ckX2iznj53V7VSMsYefzZieN93YxTNOcw@mail.gmail.com1 parent7c9e19c commit14e9b2a
File tree
3 files changed
+47
-1
lines changed- src
- backend/optimizer/util
- test/regress
- expected
- sql
3 files changed
+47
-1
lines changedLines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1190 | 1190 |
| |
1191 | 1191 |
| |
1192 | 1192 |
| |
1193 |
| - | |
| 1193 | + | |
1194 | 1194 |
| |
1195 | 1195 |
| |
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
1199 | 1213 |
| |
1200 | 1214 |
| |
1201 | 1215 |
| |
|
Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
958 | 958 |
| |
959 | 959 |
| |
960 | 960 |
| |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
961 | 987 |
| |
962 | 988 |
| |
963 | 989 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
362 | 362 |
| |
363 | 363 |
| |
364 | 364 |
| |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
365 | 371 |
| |
366 | 372 |
| |
367 | 373 |
| |
|
0 commit comments
Comments
(0)