Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZudPj-0000Si-4l for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Nov 2015 09:34:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZudPi-000692-Nk for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Nov 2015 09:34:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZudPh-000679-ME for pgsql-bugs@postgresql.org; Fri, 06 Nov 2015 09:34:29 +0000 Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZudPe-0004mv-8L for pgsql-bugs@postgresql.org; Fri, 06 Nov 2015 09:34:29 +0000 Received: by igpw7 with SMTP id w7so31880984igp.0 for ; Fri, 06 Nov 2015 01:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=1PuFL+Bif5eb+8CWc/rh+eoOBIk1Fk27QtHw6TtPkN8=; b=mhK9+hqE3NM2n39JJREEi7PoPzQ2R1wxpqmtdJavA7AblSrnT7ZhqIbAaiZ4928esy GZo9gFKbDCboGfGAXX/uNcfkgqyoN9EZ/FyFLH2McFIQpMzPGYqfZPlHVaLMbonOTyHG Lmu71mZ2uHeRLKjdoX+J0qkHa0Kr8NQSotLM2kSOpp6fkpDPB61mUyydgAe7oPLjr+1Y WAVfInN5quBAzVDVFY3i+a3ZIMlqaG+PrMPLcgK8imtl/BGb2thYFuCbC3/LzYzAtmRg ehIrfWT0F7sZEx1Fw0jZEmIipeYn3bdyjsFJI/BC0CR9YMoOCtiFD3v1Rxb+rFIhBw7m 1xAg== X-Received: by 10.50.66.229 with SMTP id i5mr8358143igt.5.1446802464468; Fri, 06 Nov 2015 01:34:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.166.138 with HTTP; Fri, 6 Nov 2015 01:34:05 -0800 (PST) In-Reply-To: <27232.1446749685@sss.pgh.pa.us> References: <93F16B4BD93A7840AC75EB16E9494C7B211084DA@EXANPMB1.arinc.com> <55BB3C53.2030603@iki.fi> <18770.1440015506@sss.pgh.pa.us> <27232.1446749685@sss.pgh.pa.us> From: Haribabu Kommi Date: Fri, 6 Nov 2015 20:34:05 +1100 Message-ID: Subject: Re: Memory leak with PL/Python trigger To: Tom Lane Cc: Heikki Linnakangas , Michael Paquier , "Behn, Edward (EBEHN)" , "pgsql-bugs@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, Nov 6, 2015 at 5:54 AM, Tom Lane wrote: > Haribabu Kommi 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. Thank you. Regards, Hari Babu Fujitsu Australia -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs