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

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix session-lifespan memory leak when a plperl function is
Date
Msg-id 20091129210228.BE419753FB7@cvs.postgresql.org
Whole thread Raw
List 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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/pl/plperl:
        plperl.c (r1.136.2.4 -> r1.136.2.5)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c?r1=1.136.2.4&r2=1.136.2.5)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix session-lifespan memory leak when a plperl function is
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix session-lifespan memory leak when a plperl function is