pgsql: Fix possible crash at transaction end when a plpgsql function is

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix possible crash at transaction end when a plpgsql function is
Date: 2006-03-02 05:34:12
Message-ID: 20060302053412.6C7FF9DCC19@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix possible crash at transaction end when a plpgsql function is used and
then modified within the same transaction. The code was using a linked list
of active PLpgSQL_expr structs, which was OK when it was written because
plpgsql never released any parse data structures for the life of the backend.
But since Neil fixed plpgsql's memory management, elements of the linked list
could be freed, leading to crash when the list is chased. Per report and test
case from Kris Jurka.

Modified Files:
--------------
pgsql/src/pl/plpgsql/src:
pl_exec.c (r1.160 -> r1.161)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.160&r2=1.161)
plpgsql.h (r1.66 -> r1.67)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/plpgsql.h.diff?r1=1.66&r2=1.67)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-03-02 05:34:18 pgsql: Fix possible crash at transaction end when a plpgsql function is
Previous Message Tom Lane 2006-03-02 01:18:26 pgsql: Fix up pg_dump to emit shell-type definitions at the proper time,