postgresql/src
Tom Lane 37bef842f5 Convert xml_in to report errors softly.
The key idea here is that xml_parse must distinguish hard errors
from soft errors.  We want to throw a hard error for libxml
initialization failures: those might be out-of-memory, or something
else, but in any case they are not the fault of the input string.
If we get to the point of parsing the input, and something goes
wrong, we can fairly consider that to mean bad input.

One thing that arguably does mean bad input, but I didn't trouble
to handle softly, is encoding conversion failure while converting
the server encoding to UTF8.  This might be something to improve
later, but it seems like a pretty low-probability scenario.

Discussion: https://postgr.es/m/3564577.1671142683@sss.pgh.pa.us
2022-12-16 11:10:40 -05:00
..
backend Convert xml_in to report errors softly. 2022-12-16 11:10:40 -05:00
bin Add grantable MAINTAIN privilege and pg_maintain role. 2022-12-13 17:33:28 -08:00
common Static assertions cleanup 2022-12-15 10:10:32 +01:00
fe_utils Non-decimal integer literals 2022-12-14 06:17:07 +01:00
include Fix typo in reference to __FreeBSD__. 2022-12-16 17:36:22 +13:00
interfaces Non-decimal integer literals 2022-12-14 06:17:07 +01:00
makefiles meson: Add basic PGXS compatibility 2022-12-06 18:56:46 -08:00
pl Allow building with MSVC and Strawberry perl 2022-11-25 15:28:38 -05:00
port meson: Basic cygwin support 2022-12-06 11:25:54 -08:00
template Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
test Convert xml_in to report errors softly. 2022-12-16 11:10:40 -05:00
timezone Remove unneeded includes of <sys/stat.h> 2022-11-05 12:31:28 +09:00
tools Create infrastructure for "soft" error reporting. 2022-12-09 09:58:38 -05:00
tutorial Doc: sync src/tutorial/basics.source with SGML documentation. 2022-11-19 13:09:14 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in autoconf: Move export_dynamic determination to configure 2022-12-06 18:55:28 -08:00
Makefile.shlib autoconf: Rely on ar supporting index creation 2022-10-07 11:53:39 -07:00
meson.build meson: Add basic PGXS compatibility 2022-12-06 18:56:46 -08:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00