Commit 28048cb
committed
Allow callers of create_foreignscan_path to specify nondefault PathTarget.
Although the default choice of rel->reltarget should typically be
sufficient for scan or join paths, it's not at all sufficient for the
purposes PathTargets were invented for; in particular not for
upper-relation Paths. So break API compatibility by adding a PathTarget
argument to create_foreignscan_path(). To ease updating of existing
code, accept a NULL value of the argument as selecting rel->reltarget.1 parent 307c788 commit 28048cb
File tree
4 files changed
+11
-2
lines changed- contrib
- file_fdw
- postgres_fdw
- src
- backend/optimizer/util
- include/optimizer
4 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
796 | 797 | | |
797 | 798 | | |
798 | 799 | | |
| |||
964 | 965 | | |
965 | 966 | | |
966 | 967 | | |
| 968 | + | |
967 | 969 | | |
968 | 970 | | |
969 | 971 | | |
| |||
3565 | 3567 | | |
3566 | 3568 | | |
3567 | 3569 | | |
| 3570 | + | |
3568 | 3571 | | |
3569 | 3572 | | |
3570 | 3573 | | |
| |||
3702 | 3705 | | |
3703 | 3706 | | |
3704 | 3707 | | |
| 3708 | + | |
3705 | 3709 | | |
3706 | 3710 | | |
3707 | 3711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
1822 | | - | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
1823 | 1825 | | |
1824 | 1826 | | |
1825 | 1827 | | |
| 1828 | + | |
1826 | 1829 | | |
1827 | 1830 | | |
1828 | 1831 | | |
| |||
1833 | 1836 | | |
1834 | 1837 | | |
1835 | 1838 | | |
1836 | | - | |
| 1839 | + | |
1837 | 1840 | | |
1838 | 1841 | | |
1839 | 1842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
0 commit comments