pgsql: Fix session-lifespan memory leak when a plperl function is

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix session-lifespan memory leak when a plperl function is
Date: 2009-11-29 21:02:16
Message-ID: 20091129210216.22ACA753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix session-lifespan memory leak when a plperl function is redefined:
we have to tell Perl it can release its compiled copy of the function
text. Noted by Alexey Klyukin.

Back-patch to 8.2 --- the problem exists further back, but this patch
won't work without modification, and it's probably not worth the trouble.

Modified Files:
--------------
pgsql/src/pl/plperl:
plperl.c (r1.154 -> r1.155)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c?r1=1.154&r2=1.155)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-11-29 21:02:22 pgsql: Fix session-lifespan memory leak when a plperl function is
Previous Message Peter Eisentraut 2009-11-29 20:14:53 pgsql: Error when a specified connection service is not found, instead