forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7fc7dac
committed
Pass the correct PlannerInfo to PlanForeignModify/PlanDirectModify.
Previously, we passed the toplevel PlannerInfo, but we actually wantto pass the relevant subroot. One problem with passing the toplevelPlannerInfo is that the FDW which wants to push down an UPDATE orDELETE against a join won't find the relevant joinrel there.As of commit1bc0100, postgres_fdwtries to do exactly this and can be made to fail an assertion as aresult.It's possible that this should be regarded as a bug fix andback-patched to earlier releases, but for lack of a test case thatfails in earlier releases, no back-patch for now.Etsuro Fujita, reviewed by Amit Langote.Discussion:http://postgr.es/m/5AF43E02.30000@lab.ntt.co.jp1 parent09b12d5 commit7fc7dac
File tree
3 files changed
+121
-10
lines changed- contrib/postgres_fdw
- expected
- sql
- src/backend/optimizer/plan
3 files changed
+121
-10
lines changedLines changed: 75 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7370 | 7370 |
| |
7371 | 7371 |
| |
7372 | 7372 |
| |
| 7373 | + | |
| 7374 | + | |
| 7375 | + | |
| 7376 | + | |
| 7377 | + | |
| 7378 | + | |
| 7379 | + | |
| 7380 | + | |
| 7381 | + | |
| 7382 | + | |
| 7383 | + | |
| 7384 | + | |
| 7385 | + | |
| 7386 | + | |
| 7387 | + | |
| 7388 | + | |
| 7389 | + | |
| 7390 | + | |
| 7391 | + | |
| 7392 | + | |
| 7393 | + | |
| 7394 | + | |
| 7395 | + | |
| 7396 | + | |
| 7397 | + | |
| 7398 | + | |
| 7399 | + | |
| 7400 | + | |
| 7401 | + | |
| 7402 | + | |
| 7403 | + | |
| 7404 | + | |
| 7405 | + | |
| 7406 | + | |
| 7407 | + | |
| 7408 | + | |
| 7409 | + | |
| 7410 | + | |
| 7411 | + | |
| 7412 | + | |
| 7413 | + | |
| 7414 | + | |
| 7415 | + | |
| 7416 | + | |
| 7417 | + | |
| 7418 | + | |
| 7419 | + | |
| 7420 | + | |
| 7421 | + | |
| 7422 | + | |
| 7423 | + | |
| 7424 | + | |
| 7425 | + | |
| 7426 | + | |
| 7427 | + | |
| 7428 | + | |
| 7429 | + | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
| 7440 | + | |
| 7441 | + | |
| 7442 | + | |
| 7443 | + | |
| 7444 | + | |
| 7445 | + | |
| 7446 | + | |
| 7447 | + | |
7373 | 7448 |
| |
7374 | 7449 |
| |
7375 | 7450 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1767 | 1767 |
| |
1768 | 1768 |
| |
1769 | 1769 |
| |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
1770 | 1802 |
| |
1771 | 1803 |
| |
1772 | 1804 |
| |
|
Lines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 |
| - | |
| 292 | + | |
293 | 293 |
| |
294 | 294 |
| |
295 | 295 |
| |
| |||
2484 | 2484 |
| |
2485 | 2485 |
| |
2486 | 2486 |
| |
| 2487 | + | |
2487 | 2488 |
| |
2488 | 2489 |
| |
2489 | 2490 |
| |
| |||
6558 | 6559 |
| |
6559 | 6560 |
| |
6560 | 6561 |
| |
6561 |
| - | |
| 6562 | + | |
6562 | 6563 |
| |
6563 | 6564 |
| |
6564 | 6565 |
| |
6565 | 6566 |
| |
6566 | 6567 |
| |
6567 | 6568 |
| |
6568 | 6569 |
| |
| 6570 | + | |
6569 | 6571 |
| |
6570 | 6572 |
| |
6571 | 6573 |
| |
| 6574 | + | |
6572 | 6575 |
| |
6573 | 6576 |
| |
6574 | 6577 |
| |
| |||
6627 | 6630 |
| |
6628 | 6631 |
| |
6629 | 6632 |
| |
6630 |
| - | |
| 6633 | + | |
6631 | 6634 |
| |
6632 | 6635 |
| |
| 6636 | + | |
6633 | 6637 |
| |
6634 | 6638 |
| |
6635 | 6639 |
| |
| |||
6641 | 6645 |
| |
6642 | 6646 |
| |
6643 | 6647 |
| |
6644 |
| - | |
6645 |
| - | |
| 6648 | + | |
| 6649 | + | |
6646 | 6650 |
| |
6647 |
| - | |
| 6651 | + | |
6648 | 6652 |
| |
6649 | 6653 |
| |
6650 | 6654 |
| |
6651 | 6655 |
| |
6652 | 6656 |
| |
6653 |
| - | |
| 6657 | + | |
6654 | 6658 |
| |
6655 | 6659 |
| |
6656 | 6660 |
| |
| |||
6672 | 6676 |
| |
6673 | 6677 |
| |
6674 | 6678 |
| |
6675 |
| - | |
6676 |
| - | |
| 6679 | + | |
| 6680 | + | |
6677 | 6681 |
| |
6678 | 6682 |
| |
6679 | 6683 |
| |
6680 | 6684 |
| |
6681 | 6685 |
| |
6682 | 6686 |
| |
6683 |
| - | |
| 6687 | + | |
6684 | 6688 |
| |
6685 | 6689 |
| |
6686 | 6690 |
| |
|
0 commit comments
Comments
(0)