=?UTF-8?Q?Jorge_Sol=C3=B3rzano?= <jorsol(at)gmail(dot)com> writes:
> Let's assume that the bug is in libxml2, should postgres crash or should it
> have some kind of protection against it?
There's not much we can do when a library we depend on segfaults. We have
no way to know what damage has been done, so letting the process crash is
pretty much the only safe option.
regards, tom lane