Re: Memory use in 8.3 plpgsql with heavy use of xpath()

From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Matt Magoffin <postgresql(dot)org(at)msqr(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Memory use in 8.3 plpgsql with heavy use of xpath()
Date: 2008-07-02 22:25:39
Message-ID: Pine.BSO.4.64.0807021824100.29829@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2 Jul 2008, Tom Lane wrote:

> "Matt Magoffin" <postgresql(dot)org(at)msqr(dot)us> writes:
>> Below is a test case that simulates the use of xpath() within a plpgsql
>> function in my application.
>
> I'm able to duplicate the memory leak in this function with the current
> Fedora 8 libxml2 (2.6.32). The leak is definitely inside libxml2
> itself, because the bloat shows up here:
>

I think this should fix it.

Kris Jurka

Attachment Content-Type Size
fix-xpath-leak.patch text/plain 552 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-07-02 23:06:04 Re: [GENERAL] pg crashing
Previous Message Matt Magoffin 2008-07-02 19:54:49 Re: Memory use in 8.3 plpgsql with heavy use of xpath()