Re: Regression with large XML data input

From: zengman <zengman(at)halodbtech(dot)com>
To: Erik Wienhold <ewie(at)ewie(dot)name>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Regression with large XML data input
Date: 2025-12-25 12:40:01
Message-ID: tencent_2F17225F164EDA2C78A5E889@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Alternatively, can you upgrade to libxml2 2.13.3+ which undeprecated
> xmlKeepBlanksDefault?
Hi,

I downloaded the source code of libxml2, compiled it and upgraded to version 2.13.4. It seems that the result is the same.
I'm wondering whether the default libxml2 provided by different operating systems meets our requirements,
or if we need to specify a particular version of libxml2 externally?

```
xml.c: In function ‘xml_parse’:
xml.c:1919:25: error: ‘xmlKeepBlanksDefault’ is deprecated [-Werror=deprecated-declarations]
1919 | save_keep_blanks = xmlKeepBlanksDefault(preserve_whitespace ? 1 : 0);
| ^~~~~~~~~~~~~~~~
In file included from xml.c:51:
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
xml.c:1943:25: error: ‘xmlKeepBlanksDefault’ is deprecated [-Werror=deprecated-declarations]
1943 | xmlKeepBlanksDefault(save_keep_blanks);
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
xml.c:1956:17: error: ‘xmlKeepBlanksDefault’ is deprecated [-Werror=deprecated-declarations]
1956 | xmlKeepBlanksDefault(save_keep_blanks);
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:957:17: note: declared here
957 | xmlKeepBlanksDefault (int val);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [../../../../src/Makefile.global:970: xml.o] Error 1
make[4]: Leaving directory '/home/postgres/code/postgres/src/backend/utils/adt'
make[3]: *** [../../../src/backend/common.mk:37: adt-recursive] Error 2
make[3]: Leaving directory '/home/postgres/code/postgres/src/backend/utils'
make[2]: *** [common.mk:37: utils-recursive] Error 2
make[2]: Leaving directory '/home/postgres/code/postgres/src/backend'
make[1]: *** [Makefile:42: all-backend-recurse] Error 2
make[1]: Leaving directory '/home/postgres/code/postgres/src'
make: *** [GNUmakefile:11: all-src-recurse] Error 2
postgres(at)zxm-VMware-Virtual-Platform:~/code/postgres$ xml2-config --version
2.13.4
```

--
Regards,
Man Zeng
www.openhalo.org

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2025-12-25 12:52:34 Re: Implement waiting for wal lsn replay: reloaded
Previous Message Erik Wienhold 2025-12-25 11:46:47 Re: Regression with large XML data input