Re: Memory use in 8.3 plpgsql with heavy use of xpath() - Mailing list pgsql-general

From Tom Lane
Subject Re: Memory use in 8.3 plpgsql with heavy use of xpath()
Date
Msg-id 24369.1214947877@sss.pgh.pa.us
Whole thread Raw
In response to Memory use in 8.3 plpgsql with heavy use of xpath()  ("Matt Magoffin" <postgresql.org@msqr.us>)
Responses Re: Memory use in 8.3 plpgsql with heavy use of xpath()
List pgsql-general
"Matt Magoffin" <postgresql.org@msqr.us> writes:
> Later, I added a large set of plpgsql trigger functions that operate on
> that new xml column data, using the xpath() function to extract bits of
> XML and populate them into normal tables. The server has been running in
> this fashion for many months now, and there is a noticeable difference in
> how Postgres is using memory now, in that over time it's non-shared memory
> use is climbing higher and higher. Right now I'm tracking this from data
> captured by Munin on the system. The memory creep is very slight, but over
> many months is easy to discern.

Ugh.  Sounds like "small memory leak inside libxml2" --- probably not
going to be easy to find.  Can you put together a self-contained test
case?

            regards, tom lane

pgsql-general by date:

Previous
From: "Matt Magoffin"
Date:
Subject: Memory use in 8.3 plpgsql with heavy use of xpath()
Next
From: "Matt Magoffin"
Date:
Subject: Re: Memory use in 8.3 plpgsql with heavy use of xpath()