pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Behn, Edward (EBEHN) <EBEHN@arinc.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Memory leak with PL/Python trigger
Date: Thu, 05 Nov 2015 13:54:45 -0500
Message-ID: <27232.1446749685@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJrrPGfAcrBuHtr5nJkZXbs0Wjj7evGvGCY-eXDnO2SkcMRX_A@mail.gmail.com>
References: <93F16B4BD93A7840AC75EB16E9494C7B211084DA@EXANPMB1.arinc.com>
	<CAJrrPGf4s5QKU2VrYWBeqTf+4kHekj4uEnnx6P0ShdVZN6kZKA@mail.gmail.com>
	<CAJrrPGc0grzvEcFrMjFzEzE8veVt4A8hyLZrmdCj_XGReWWpQA@mail.gmail.com>
	<55BB3C53.2030603@iki.fi>
	<CAJrrPGcnjrz5pFVLcOwtoCMcgX-Qcv4M2x+cDrR8hCwPpEfmNw@mail.gmail.com>
	<CAB7nPqRFjq4aT_GSkUyuYda4XBtrLN3xgOnsR=fERD2dUfnFuA@mail.gmail.com>
	<CAJrrPGdRgHqSueBxd43xw-utovF4WB-4f8MXyYL798jAenKE-w@mail.gmail.com>
	<CAJrrPGcBLU88heef0TB_imuj5VBsz5nDSC-QwmO4-TtAx0_TsA@mail.gmail.com>
	<18770.1440015506@sss.pgh.pa.us>
	<CAJrrPGfAcrBuHtr5nJkZXbs0Wjj7evGvGCY-eXDnO2SkcMRX_A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Haribabu Kommi <kommi.haribabu@gmail.com> writes:
> Is the attached patch is in the right direction to the handle the problem?

Pretty close.  Now that we've done this, we can get rid of a lot of the
retail pfree's since the memory context deletions will take care of it.
I cleaned that up a bit more and committed it.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (12+ messages)  latest in thread

Message-ID: <27232.1446749685@sss.pgh.pa.us>
Permalink:  ../27232.1446749685@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27232.1446749685@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kommi.haribabu@gmail.com, hlinnaka@iki.fi, michael.paquier@gmail.com, EBEHN@arinc.com
  Subject: Re: Memory leak with PL/Python trigger
  In-Reply-To: <27232.1446749685@sss.pgh.pa.us>
  References: <93F16B4BD93A7840AC75EB16E9494C7B211084DA@EXANPMB1.arinc.com> <CAJrrPGf4s5QKU2VrYWBeqTf+4kHekj4uEnnx6P0ShdVZN6kZKA@mail.gmail.com> <CAJrrPGc0grzvEcFrMjFzEzE8veVt4A8hyLZrmdCj_XGReWWpQA@mail.gmail.com> <55BB3C53.2030603@iki.fi> <CAJrrPGcnjrz5pFVLcOwtoCMcgX-Qcv4M2x+cDrR8hCwPpEfmNw@mail.gmail.com> <CAB7nPqRFjq4aT_GSkUyuYda4XBtrLN3xgOnsR=fERD2dUfnFuA@mail.gmail.com> <CAJrrPGdRgHqSueBxd43xw-utovF4WB-4f8MXyYL798jAenKE-w@mail.gmail.com> <CAJrrPGcBLU88heef0TB_imuj5VBsz5nDSC-QwmO4-TtAx0_TsA@mail.gmail.com> <18770.1440015506@sss.pgh.pa.us> <CAJrrPGfAcrBuHtr5nJkZXbs0Wjj7evGvGCY-eXDnO2SkcMRX_A@mail.gmail.com> <27232.1446749685@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox