aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-03-03 19:10:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-03-03 19:10:22 +0000
commit5e47403be31fb7501ba6fb6ebda82300a10cf8b2 (patch)
treeb21dd66537460a3a4c94dec8a844a1421daf95e0 /src
parent8bf14182cfeeae2ad5e5feb792701250e1218638 (diff)
downloadpostgresql-5e47403be31fb7501ba6fb6ebda82300a10cf8b2.tar.gz
postgresql-5e47403be31fb7501ba6fb6ebda82300a10cf8b2.zip
Make contrib/xml2 use core xml.c's error handler, when available (that is,
in versions >= 8.3). The core code is more robust and efficient than what was there before, and this also reduces risks involved in swapping different libxml error handler settings. Before 8.3, there is still some risk of problems if add-on modules such as Perl invoke libxml without setting their own error handler. Given the lack of reports I'm not sure there's a risk in practice, so I didn't take the step of actually duplicating the core code into older contrib/xml2 branches. Instead I just tweaked the existing code to ensure it didn't leave a dangling pointer to short-lived memory when throwing an error.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions