Skip site navigation (1) Skip section navigation (2)

Re: contrib/xml2 pfree bug

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: contrib/xml2 pfree bug
Date: 2010-02-28 20:59:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> Didn't we just clean up a mess in our XML handling to do with memory 
>> handlers? It looks like contrib/xml2 might have similar problems.
> BTW, I couldn't duplicate this because I don't know what
> cb_ob_invoice_xml(1,1) refers to.  Can you provide a self-contained
> example?

Almost any XML will do for the first param. e.g.:

select xslt_process( query_to_xml('select x from generate_series(1,5) as 
$$<xsl:stylesheet version="1.0"
<xsl:output method="xml" indent="yes" />
<xsl:template match="*">
     <xsl:copy-of select="@*" />
     <xsl:apply-templates />
<xsl:template match="comment()|processing-instruction()">
  <xsl:copy />



In response to


pgsql-hackers by date

Next:From: Andrew DunstanDate: 2010-02-28 21:06:40
Subject: Re: contrib/xml2 pfree bug
Previous:From: Dimitri FontaineDate: 2010-02-28 20:54:52
Subject: Re: Re: Hot Standby query cancellation and Streaming Replication integration

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group