Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> The note >> at line 27ff of xml.c implies that libxml keeps static pointers to >> allocated things that it thinks will survive indefinitely, so we >> may have to have these. I'm suspicious whether xmlelement doesn't >> have a problem if the called expressions error out ...
> Hmm. That could also be fixed if we separated xml_init() and > xmlInitParser(). Do we know that only xmlInitParser() sets up such static pointers? If we do, I wonder whether we could call xmlInitParser once in TopMemoryContext (or before changing the memory function pointers at all) and then never do xmlCleanupParser? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match