forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit518442c
committed
Fix handling of clauses incompatible with extended statistics
Handling of incompatible clauses while applying extended statistics wasa bit confused - while handling a mix of compatible and incompatibleclauses it sometimes incorrectly treated the incompatible clauses ascompatible, resulting in a crash.Fixed by reworking the code applying the selected statistics object tomake it easier to understand, and adding a proper compatibility check.Reported-by: David RowleyDiscussion:https://postgr.es/m/CAApHDvpYT10-nkSp8xXe-nbO3jmoaRyRFHbzh-RWMfAJynqgpQ%40mail.gmail.com1 parent7ab96cf commit518442c
File tree
4 files changed
+100
-28
lines changed- src
- backend/statistics
- test/regress
- expected
- sql
4 files changed
+100
-28
lines changedLines changed: 58 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1255 | 1255 |
| |
1256 | 1256 |
| |
1257 | 1257 |
| |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
1258 | 1262 |
| |
1259 | 1263 |
| |
1260 | 1264 |
| |
| |||
1758 | 1762 |
| |
1759 | 1763 |
| |
1760 | 1764 |
| |
1761 |
| - | |
| 1765 | + | |
1762 | 1766 |
| |
1763 | 1767 |
| |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
1764 | 1771 |
| |
1765 |
| - | |
1766 |
| - | |
1767 |
| - | |
1768 |
| - | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1769 | 1782 |
| |
1770 |
| - | |
1771 |
| - | |
1772 |
| - | |
1773 |
| - | |
1774 |
| - | |
1775 |
| - | |
1776 |
| - | |
1777 |
| - | |
1778 |
| - | |
1779 |
| - | |
1780 |
| - | |
1781 |
| - | |
1782 |
| - | |
1783 |
| - | |
1784 |
| - | |
1785 |
| - | |
1786 |
| - | |
1787 |
| - | |
1788 |
| - | |
1789 |
| - | |
1790 |
| - | |
1791 |
| - | |
| 1783 | + | |
| 1784 | + | |
1792 | 1785 |
| |
1793 |
| - | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
1794 | 1824 |
| |
1795 | 1825 |
| |
1796 | 1826 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1575 | 1575 |
| |
1576 | 1576 |
| |
1577 | 1577 |
| |
| 1578 | + | |
| 1579 | + | |
1578 | 1580 |
| |
1579 | 1581 |
| |
1580 | 1582 |
| |
| |||
1654 | 1656 |
| |
1655 | 1657 |
| |
1656 | 1658 |
| |
| 1659 | + | |
| 1660 | + | |
1657 | 1661 |
| |
1658 | 1662 |
| |
1659 | 1663 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2938 | 2938 |
| |
2939 | 2939 |
| |
2940 | 2940 |
| |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
2941 | 2960 |
| |
2942 | 2961 |
| |
2943 | 2962 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1470 | 1470 |
| |
1471 | 1471 |
| |
1472 | 1472 |
| |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
1473 | 1492 |
| |
1474 | 1493 |
| |
1475 | 1494 |
| |
|
0 commit comments
Comments
(0)