Commit 132488b
committed
Set ecxt_scantuple correctly for tuple routing.
In 2ac3ef7, we changed things so that
it's possible for a different TupleTableSlot to be used for partitioned
tables at successively lower levels. If we do end up changing the slot
from the original, we must update ecxt_scantuple to point to the new one
for partition key of the tuple to be computed correctly.
Reported by Rajkumar Raghuwanshi. Patch by Amit Langote.
Discussion: http://postgr.es/m/CAKcux6%3Dm1qyqB2k6cjniuMMrYXb75O-MB4qGQMu8zg-iGGLjDw%40mail.gmail.com1 parent 27cdb34 commit 132488b
File tree
4 files changed
+25
-11
lines changed- src
- backend
- catalog
- executor
- test/regress
- expected
- sql
4 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | | - | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
1683 | 1686 | | |
1684 | 1687 | | |
1685 | 1688 | | |
| |||
1708 | 1711 | | |
1709 | 1712 | | |
1710 | 1713 | | |
1711 | | - | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1712 | 1723 | | |
1713 | 1724 | | |
1714 | 1725 | | |
| |||
1763 | 1774 | | |
1764 | 1775 | | |
1765 | 1776 | | |
| 1777 | + | |
1766 | 1778 | | |
1767 | | - | |
| 1779 | + | |
1768 | 1780 | | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
1772 | 1784 | | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
1773 | 1788 | | |
1774 | 1789 | | |
1775 | | - | |
| 1790 | + | |
| 1791 | + | |
1776 | 1792 | | |
1777 | 1793 | | |
1778 | 1794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3192 | 3192 | | |
3193 | 3193 | | |
3194 | 3194 | | |
3195 | | - | |
3196 | 3195 | | |
3197 | | - | |
3198 | 3196 | | |
3199 | 3197 | | |
3200 | 3198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments