- Notifications
You must be signed in to change notification settings - Fork28
Commit86e640a
committed
postgres_fdw: Fix join push down with extensions
Objects in an extension are shippable to a foreign server if theextension is part of the foreign server definition's shippableextensions list. But this was not properly considered in some caseswhen checking whether a join condition can be pushed to a foreign serverand the join condition uses an object from a shippable extension. Sothe join would never be pushed down in those cases.So, the list of extensions needs to be made available in fpinfo of therelation being considered to be pushed down before any expressions areassessed for being shippable. Fix foreign_join_ok() to do that for ajoin relation.David Rowley and Ashutosh Bapat, per report from David Rowleyreduced version of patch332bec1 forbackpatch to 9.6, first release with join push down1 parente615605 commit86e640a
File tree
3 files changed
+46
-3
lines changed- contrib/postgres_fdw
- expected
- sql
3 files changed
+46
-3
lines changedLines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1501 | 1501 |
| |
1502 | 1502 |
| |
1503 | 1503 |
| |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
1504 | 1533 |
| |
1505 | 1534 |
| |
1506 | 1535 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3990 | 3990 |
| |
3991 | 3991 |
| |
3992 | 3992 |
| |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
3993 | 4002 |
| |
3994 | 4003 |
| |
3995 | 4004 |
| |
| |||
4133 | 4142 |
| |
4134 | 4143 |
| |
4135 | 4144 |
| |
4136 |
| - | |
4137 |
| - | |
4138 |
| - | |
4139 | 4145 |
| |
4140 | 4146 |
| |
4141 | 4147 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
425 | 433 |
| |
426 | 434 |
| |
427 | 435 |
| |
|
0 commit comments
Comments
(0)