forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitac12412
committed
Revise memory management for libxml calls. Instead of keeping libxml's data
in whichever context happens to be current during a call of an xml.c function,use a dedicated context that will not go away until we explicitly delete it(which we do at transaction end or subtransaction abort). This makes recoveryafter an error much simpler --- we don't have to individually delete the datastructures created by libxml. Also, we need to initialize and cleanup libxmlonly once per transaction (if there's no error) instead of once per functioncall, so it should be a bit faster. We'll need to keep an eye out forintra-transaction memory leaks, though. Alvaro and Tom.1 parentdeb7ded commitac12412
3 files changed
+252
-255
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
| |||
1671 | 1672 |
| |
1672 | 1673 |
| |
1673 | 1674 |
| |
| 1675 | + | |
1674 | 1676 |
| |
1675 | 1677 |
| |
1676 | 1678 |
| |
| |||
1880 | 1882 |
| |
1881 | 1883 |
| |
1882 | 1884 |
| |
| 1885 | + | |
1883 | 1886 |
| |
1884 | 1887 |
| |
1885 | 1888 |
| |
| |||
2021 | 2024 |
| |
2022 | 2025 |
| |
2023 | 2026 |
| |
| 2027 | + | |
2024 | 2028 |
| |
2025 | 2029 |
| |
2026 | 2030 |
| |
| |||
3851 | 3855 |
| |
3852 | 3856 |
| |
3853 | 3857 |
| |
| 3858 | + | |
3854 | 3859 |
| |
3855 | 3860 |
| |
3856 | 3861 |
| |
|
0 commit comments
Comments
(0)