Re: BUG #1739: memory leak in pl/perl with spi_exec_query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jean-Max Reymond <jmreymond(at)ckr-solutions(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1739: memory leak in pl/perl with spi_exec_query
Date: 2005-07-03 21:28:00
Message-ID: 20265.1120426080@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jean-Max Reymond <jmreymond(at)ckr-solutions(dot)com> writes:
> I have run again my real plperl procedure and attach a gdb to the process.
> a call MemoryContextStats(TopMemoryContext) gives me the results as above.

> SPI Proc: 1015013376 total in 130 blocks; 1893336 free (0 chunks);
> 1013120040 used

Well, that says it's definitely a bug in plperl, not some weird
Perl/malloc interaction as I thought previously. Probably plperl
is failing to release SPI queries when done with them. Any plperl
people want to take a look?

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-07-03 21:57:41 Re: BUG #1739: memory leak in pl/perl with spi_exec_query
Previous Message Jean-Max Reymond 2005-07-03 20:40:05 Re: BUG #1739: memory leak in pl/perl with spi_exec_query