pgsql: Clean up data conversion short-lived memory context. - Mailing list pgsql-committers

From Joe Conway
Subject pgsql: Clean up data conversion short-lived memory context.
Date
Msg-id E1Wy4Uv-0002wn-Cu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Clean up data conversion short-lived memory context.

dblink uses a short-lived data conversion memory context. However it
was not deleted when no longer needed, leading to a noticeable memory
leak under some circumstances. Plug the hole, along with minor
refactoring. Backpatch to 9.2 where the leak was introduced.

Report and initial patch by MauMau. Reviewed/modified slightly by
Tom Lane and me.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3e2cfa42f9b9ddfb469f0f56d78377b1864eb894

Modified Files
--------------
contrib/dblink/dblink.c |   22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Joe Conway
Date:
Subject: pgsql: Clean up data conversion short-lived memory context.
Next
From: Tom Lane
Date:
Subject: pgsql: Add Asserts to verify that catalog cache keys are unique and not