| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Daniel Westermann (DWE)" <daniel(dot)westermann(at)dbi-services(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Deprecation warnings on Rocky 10.2 with current dev branch |
| Date: | 2026-07-17 14:38:01 |
| Message-ID: | 3880726.1784299081@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
"Daniel Westermann (DWE)" <daniel(dot)westermann(at)dbi-services(dot)com> writes:
> I've just noticed this while building from the dev branch on Rocky 10.2 x64:
> ../postgresql/src/backend/utils/adt/xml.c:1961:17: warning: xmlKeepBlanksDefault is deprecated [-Wdeprecated-declarations]
> 1961 | xmlKeepBlanksDefault(save_keep_blanks);
> | ^~~~~~~~~~~~~~~~~~~~
> Is this known already?
Yeah. It's annoying as heck, because they deprecated that without
providing an adequate replacement. The replacement is claimed to
be "Use the modern options API with XML_PARSE_NOBLANKS", but there
is no direct equivalent to xmlParseBalancedChunkMemory that takes
an options argument.
So to get rid of this, we're looking at a probably-nontrivial
rewrite of xml_parse(), with possibly some user-visible behavioral
changes, and who-knows-what effects for compatibility across
different libxml2 versions.
If you feel like researching that, have at it.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Tom Lane | 2026-07-17 14:29:33 | Re: [PATCH] Rename "getdatabaseencoding()" to "pg_database_encoding()", and document |