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

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clean up data conversion short-lived memory context.
Date: 2014-06-20 19:28:59
Message-ID: E1Wy4Ud-0002vF-Ll@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1dde5782e34a1c5ef2ce9d97cf18007fed5fde92

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

Browse pgsql-committers by date

  From Date Subject
Next Message Joe Conway 2014-06-20 19:29:05 pgsql: Clean up data conversion short-lived memory context.
Previous Message Andres Freund 2014-06-20 09:11:09 pgsql: Do all-visible handling in lazy_vacuum_page() outside its critic