forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2197d06
committed
Add support for parsing of large XML data (>= 10MB)
This commit adds XML_PARSE_HUGE to the libxml2 functions used in corefor the parsing of XML objects, raising up the original limit of 10MBsupported by libxml2.In most code paths of upstream, XML_MAX_TEXT_LENGTH (10^7) is thehistorical limit that gets upgraded to XML_MAX_HUGE_LENGTH (10^9) onceXML_PARSE_HUGE is given to the parser calls. These are still limited byany palloc() calls for text, up to 1GB.This offers the possibility to handle within the backend XML objectslarger than 10MB in general, with also a higher depth limit. Thischange affects the contrib module xml2, the xml data type and SQL/XML.Author: Dmitry KovalReviewed-by: Tom Lane, Michael PaquierDiscussion:https://postgr.es/m/18274-98d16bc03520665f@postgresql.org1 parent65c5864 commit2197d06
3 files changed
+33
-13
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 |
| - | |
| 384 | + | |
385 | 385 |
| |
386 | 386 |
| |
387 | 387 |
| |
| |||
626 | 626 |
| |
627 | 627 |
| |
628 | 628 |
| |
629 |
| - | |
| 629 | + | |
630 | 630 |
| |
631 | 631 |
| |
632 | 632 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
| 99 | + | |
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
|
Lines changed: 29 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1688 | 1688 |
| |
1689 | 1689 |
| |
1690 | 1690 |
| |
1691 |
| - | |
1692 |
| - | |
| 1691 | + | |
| 1692 | + | |
1693 | 1693 |
| |
1694 | 1694 |
| |
1695 | 1695 |
| |
| |||
1795 | 1795 |
| |
1796 | 1796 |
| |
1797 | 1797 |
| |
1798 |
| - | |
| 1798 | + | |
1799 | 1799 |
| |
1800 | 1800 |
| |
1801 | 1801 |
| |
| |||
1828 | 1828 |
| |
1829 | 1829 |
| |
1830 | 1830 |
| |
1831 |
| - | |
1832 |
| - | |
1833 |
| - | |
1834 |
| - | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
1835 | 1855 |
| |
1836 | 1856 |
| |
1837 | 1857 |
| |
| |||
4344 | 4364 |
| |
4345 | 4365 |
| |
4346 | 4366 |
| |
4347 |
| - | |
| 4367 | + | |
4348 | 4368 |
| |
4349 | 4369 |
| |
4350 | 4370 |
| |
| |||
4675 | 4695 |
| |
4676 | 4696 |
| |
4677 | 4697 |
| |
4678 |
| - | |
| 4698 | + | |
4679 | 4699 |
| |
4680 | 4700 |
| |
4681 | 4701 |
| |
|
0 commit comments
Comments
(0)