- Notifications
You must be signed in to change notification settings - Fork5k
Commit6082b3d
committed
Use xmlParseInNodeContext not xmlParseBalancedChunkMemory.
xmlParseInNodeContext has basically the same functionality witha different API: we have to supply an xmlNode that's attached to adocument rather than just the document. That's not hard though.The benefits are two:* Early 2.13.x releases of libxml2 contain a bug that causesxmlParseBalancedChunkMemory to return the wrong status value in somecases. This breaks our regression tests. While that bug is now fixedupstream and will probably never be seen in any production-orienteddistro, it is currently a problem on some more-bleeding-edge-friendlyplatforms.* xmlParseBalancedChunkMemory is considered to depend on libxml2'ssemi-deprecated SAX1 APIs, and will go away when and if they do.There may already be libxml2 builds out there that lack this function.So there are both short- and long-term reasons to make this change.While here, avoid allocating an xmlParserCtxt in DOCUMENT parse mode,since that code path is not going to use it.Like066e8ac, this will need to be back-patched. This is just atrial commit to see if the buildfarm agrees that we can usexmlParseInNodeContext unconditionally.Erik Wienhold and Tom Lane, per report from Frank Streitzig.Discussion:https://postgr.es/m/trinity-b0161630-d230-4598-9ebc-7a23acdb37cb-1720186432160@3c-app-gmx-bap25Discussion:https://postgr.es/m/trinity-361ba18b-541a-4fe7-bc63-655ae3a7d599-1720259822452@3c-app-gmx-bs011 parent1ff39f4 commit6082b3d
1 file changed
+52
-23
lines changedLines changed: 52 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1696 | 1696 |
| |
1697 | 1697 |
| |
1698 | 1698 |
| |
1699 |
| - | |
1700 |
| - | |
1701 |
| - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1702 | 1702 |
| |
1703 | 1703 |
| |
1704 | 1704 |
| |
| |||
1750 | 1750 |
| |
1751 | 1751 |
| |
1752 | 1752 |
| |
| 1753 | + | |
1753 | 1754 |
| |
1754 | 1755 |
| |
1755 | 1756 |
| |
| |||
1758 | 1759 |
| |
1759 | 1760 |
| |
1760 | 1761 |
| |
1761 |
| - | |
1762 |
| - | |
1763 |
| - | |
1764 |
| - | |
1765 |
| - | |
1766 | 1762 |
| |
1767 | 1763 |
| |
1768 | 1764 |
| |
| |||
1785 | 1781 |
| |
1786 | 1782 |
| |
1787 | 1783 |
| |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1788 | 1796 |
| |
1789 | 1797 |
| |
1790 | 1798 |
| |
| |||
1794 | 1802 |
| |
1795 | 1803 |
| |
1796 | 1804 |
| |
1797 |
| - | |
1798 |
| - | |
1799 |
| - | |
1800 |
| - | |
1801 |
| - | |
1802 |
| - | |
1803 |
| - | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1804 | 1810 |
| |
1805 |
| - | |
| 1811 | + | |
1806 | 1812 |
| |
1807 |
| - | |
1808 |
| - | |
| 1813 | + | |
| 1814 | + | |
1809 | 1815 |
| |
1810 | 1816 |
| |
1811 | 1817 |
| |
| |||
1822 | 1828 |
| |
1823 | 1829 |
| |
1824 | 1830 |
| |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
1825 | 1834 |
| |
1826 | 1835 |
| |
1827 | 1836 |
| |
| |||
1834 | 1843 |
| |
1835 | 1844 |
| |
1836 | 1845 |
| |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1837 | 1853 |
| |
1838 | 1854 |
| |
1839 | 1855 |
| |
1840 |
| - | |
1841 |
| - | |
1842 |
| - | |
1843 |
| - | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1844 | 1866 |
| |
| 1867 | + | |
1845 | 1868 |
| |
1846 | 1869 |
| |
1847 | 1870 |
| |
1848 | 1871 |
| |
1849 | 1872 |
| |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
1850 | 1878 |
| |
1851 | 1879 |
| |
1852 | 1880 |
| |
| |||
1866 | 1894 |
| |
1867 | 1895 |
| |
1868 | 1896 |
| |
1869 |
| - | |
| 1897 | + | |
| 1898 | + | |
1870 | 1899 |
| |
1871 | 1900 |
| |
1872 | 1901 |
| |
|
0 commit comments
Comments
(0)