postgresql/src/backend/utils/adt
Tom Lane 400928b83b Fix incompatibilities with libxml2 >= 2.12.0.
libxml2 changed the required signature of error handler callbacks
to make the passed xmlError struct "const".  This is causing build
failures on buildfarm member caiman, and no doubt will start showing
up in the field quite soon.  Add a version check to adjust the
declaration of xml_errorHandler() according to LIBXML_VERSION.

2.12.x also produces deprecation warnings for contrib/xml2/xpath.c's
assignment to xmlLoadExtDtdDefaultValue.  I see no good reason for
that to still be there, seeing that we disabled external DTDs (at a
lower level) years ago for security reasons.  Let's just remove it.

Back-patch to all supported branches, since they might all get built
with newer libxml2 once it gets a bit more popular.  (The back
branches produce another deprecation warning about xpath.c's use of
xmlSubstituteEntitiesDefault().  We ought to consider whether to
back-patch all or part of commit 65c5864d7 to silence that.  It's
less urgent though, since it won't break the buildfarm.)

Discussion: https://postgr.es/m/1389505.1706382262@sss.pgh.pa.us
2024-01-29 12:06:13 -05:00
..
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
acl.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
amutils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_expanded.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_typanalyze.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
array_userfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
arrayfuncs.c Teach estimate_array_length() to use statistics where available. 2024-01-04 18:36:19 -05:00
arraysubs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
arrayutils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ascii.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
bool.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
cash.c Convert a few more datatype input functions to report errors softly. 2022-12-14 18:03:11 -05:00
char.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
cryptohashfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
date.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
datetime.c Support TZ and OF format codes in to_timestamp(). 2024-01-25 17:47:08 -05:00
datum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
dbsize.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
domains.c Adjust populate_record_field() to handle errors softly 2024-01-24 15:04:33 +09:00
encode.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
enum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
expandeddatum.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
expandedrecord.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
float.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
format_type.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
formatting.c Support TZ and OF format codes in to_timestamp(). 2024-01-25 17:47:08 -05:00
genfile.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
geo_ops.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
geo_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
geo_spgist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
hbafuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
inet_cidr_ntop.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
inet_net_pton.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
int.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
int8.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
json.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb_gin.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb_op.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonb_util.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonbsubs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonfuncs.c Silence compiler warning introduced in 1edb3b491b 2024-01-25 17:12:18 +09:00
jsonpath.c Implement various jsonpath methods 2024-01-25 10:15:43 -05:00
jsonpath_exec.c Support TZ and OF format codes in to_timestamp(). 2024-01-25 17:47:08 -05:00
jsonpath_gram.y Implement various jsonpath methods 2024-01-25 10:15:43 -05:00
jsonpath_internal.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
jsonpath_scan.l Implement various jsonpath methods 2024-01-25 10:15:43 -05:00
levenshtein.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
like.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
like_match.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
like_support.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
lockfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
mac.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
mac8.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
mcxtfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
misc.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
multirangetypes.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
multirangetypes_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
name.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
network.c Work around spurious compiler warning in inet operators 2023-03-16 14:48:45 -07:00
network_gist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
network_selfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
network_spgist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
numeric.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
numutils.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
oid.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
oracle_compat.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
orderedsetaggs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
partitionfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_locale.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_lsn.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_upgrade_support.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pgstatfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pseudotypes.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
quote.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rangetypes.c Add planner support functions for range operators <@ and @>. 2024-01-20 13:57:54 -05:00
rangetypes_gist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rangetypes_selfuncs.c Add planner support functions for range operators <@ and @>. 2024-01-20 13:57:54 -05:00
rangetypes_spgist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rangetypes_typanalyze.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
regexp.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
regproc.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ri_triggers.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
rowtypes.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
ruleutils.c Add temporal PRIMARY KEY and UNIQUE constraints 2024-01-24 16:34:37 +01:00
selfuncs.c Allow examine_simple_variable() to work on INSERT RETURNING Vars. 2024-01-08 11:48:44 -05:00
tid.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
timestamp.c Detect Julian-date overflow in timestamp[tz]_pl_interval. 2024-01-26 13:39:45 -05:00
trigfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsginidx.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsgistidx.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_cleanup.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_gist.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_op.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_rewrite.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsquery_util.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsrank.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsvector.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsvector_op.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsvector_parser.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
uuid.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
varbit.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
varchar.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
varlena.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
version.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
windowfuncs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
xid.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
xid8funcs.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
xml.c Fix incompatibilities with libxml2 >= 2.12.0. 2024-01-29 12:06:13 -05:00