"Matt Magoffin" <postgresql.org@xxxxxxx> writes: > It looks like xml.c source has changed considerably since 8.3 No, hardly at all actually, but this patch happens to be right next door to one of the lines that did change. cstring_to_text() replaces some grottier stuff that used to be used for the same purpose. In a few minutes I'm going to verify whether Kris' fix makes the leak go away for me, and commit to CVS if so. regards, tom lane