- Notifications
You must be signed in to change notification settings - Fork5
Commit51298bc
committed
Reset evaluation plan tuple table next free slot counter to 0
after ExecEndNode. It must be done! Or we'll be out of freetuple slots very soon, though slots are freed by ExecEndNodeand ready for reusing.We didn't see this problem before because ofint nSlots = ExecCountSlotsNode(plan);TupleTable tupleTable = ExecCreateTupleTable(nSlots + 10); /* why add ten? - jolly */code in InitPlan - i.e. extra 10 slots. Simple select uses3 slots and so it was possible to re-use evaluation plan3 additional times and didn't getelog(NOTICE, "Plan requires more slots than are available");elog(ERROR, "send mail to your local executor guru to fix this");Changes are obvious and shouldn't be problems with them.Though, I added Assert(epqstate->es_tupleTable->next == 0)before EvalPlanQual():ExecInitNode and we'll notice ifsomething is still wrong. Is it better to change Assertto elog(ERROR) ?1 parent0e41fd5 commit51298bc
1 file changed
+12
-2
lines changedLines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
1673 | 1673 |
| |
1674 | 1674 |
| |
1675 | 1675 |
| |
| 1676 | + | |
1676 | 1677 |
| |
1677 | 1678 |
| |
1678 | 1679 |
| |
| |||
1741 | 1742 |
| |
1742 | 1743 |
| |
1743 | 1744 |
| |
| 1745 | + | |
1744 | 1746 |
| |
| 1747 | + | |
| 1748 | + | |
1745 | 1749 |
| |
1746 | 1750 |
| |
1747 | 1751 |
| |
| |||
1774 | 1778 |
| |
1775 | 1779 |
| |
1776 | 1780 |
| |
1777 |
| - | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
1778 | 1786 |
| |
1779 | 1787 |
| |
1780 | 1788 |
| |
| |||
1836 | 1844 |
| |
1837 | 1845 |
| |
1838 | 1846 |
| |
| 1847 | + | |
1839 | 1848 |
| |
1840 | 1849 |
| |
1841 | 1850 |
| |
| |||
1866 | 1875 |
| |
1867 | 1876 |
| |
1868 | 1877 |
| |
| 1878 | + | |
1869 | 1879 |
| |
1870 | 1880 |
| |
1871 | 1881 |
| |
|
0 commit comments
Comments
(0)