forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2309eff

Richard Guo
Refactor the checks for parameterized partial paths
Parameterized partial paths are not supported, and we have severalchecks in try_partial_xxx_path functions to enforce this. For apartial nestloop join path, we need to ensure that if the inner pathis parameterized, the parameterization is fully satisfied by theproposed outer path. For a partial merge/hashjoin join path, we needto ensure that the inner path is not parameterized. In all cases, weneed to ensure that the outer path is not parameterized.However, the comment in try_partial_hashjoin_path does not describethis correctly. This patch fixes that.In addtion, this patch simplifies the checks peformed intry_partial_hashjoin_path and try_partial_mergejoin_path with the helpof macro PATH_REQ_OUTER, and also adds asserts that the outer path isnot parameterized in try_partial_xxx_path functions.Author: Richard GuoDiscussion:https://postgr.es/m/CAMbWs48mKJ6g_GnYNa7dnw04MHaMK-jnAEBrMVhTp2uUg3Ut4A@mail.gmail.com1 parentcc9daa0 commit2309eff
1 file changed
+10
-18
lines changedLines changed: 10 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
961 | 961 |
| |
962 | 962 |
| |
963 | 963 |
| |
| 964 | + | |
964 | 965 |
| |
965 | 966 |
| |
966 | 967 |
| |
| |||
1144 | 1145 |
| |
1145 | 1146 |
| |
1146 | 1147 |
| |
1147 |
| - | |
1148 |
| - | |
1149 |
| - | |
1150 |
| - | |
1151 |
| - | |
1152 |
| - | |
1153 |
| - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1154 | 1151 |
| |
1155 | 1152 |
| |
1156 | 1153 |
| |
| |||
1286 | 1283 |
| |
1287 | 1284 |
| |
1288 | 1285 |
| |
1289 |
| - | |
1290 |
| - | |
1291 |
| - | |
1292 |
| - | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1293 | 1289 |
| |
1294 | 1290 |
| |
1295 |
| - | |
1296 |
| - | |
1297 |
| - | |
1298 |
| - | |
1299 |
| - | |
1300 |
| - | |
1301 |
| - | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1302 | 1294 |
| |
1303 | 1295 |
| |
1304 | 1296 |
| |
|
0 commit comments
Comments
(0)