forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb32e635
committed
Fix match_foreign_keys_to_quals for FKs linking to unused rtable entries.
Since get_relation_foreign_keys doesn't try to determine whether RTEsare actually part of the query semantics, it might make FK info recordslinking to RTEs that won't have a RelOptInfo at all. Cope with that.Per bug #14219 from Andrew Gierth.Report: <20160629183338.1397.43514@wrigleys.postgresql.org>1 parent4242a71 commitb32e635
File tree
3 files changed
+49
-2
lines changed- src
- backend/optimizer/plan
- test/regress
- expected
- sql
3 files changed
+49
-2
lines changedLines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2329 | 2329 |
| |
2330 | 2330 |
| |
2331 | 2331 |
| |
2332 |
| - | |
2333 |
| - | |
| 2332 | + | |
| 2333 | + | |
2334 | 2334 |
| |
2335 | 2335 |
| |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
2336 | 2351 |
| |
2337 | 2352 |
| |
2338 | 2353 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1359 | 1359 |
| |
1360 | 1360 |
| |
1361 | 1361 |
| |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + |
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1009 | 1009 |
| |
1010 | 1010 |
| |
1011 | 1011 |
| |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + |
0 commit comments
Comments
(0)