X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D952752825 for ; Tue, 28 Jun 2005 19:10:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59607-10 for ; Tue, 28 Jun 2005 22:10:01 +0000 (GMT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by svr1.postgresql.org (Postfix) with ESMTP id 924195287E for ; Tue, 28 Jun 2005 19:09:59 -0300 (ADT) Received: by nproxy.gmail.com with SMTP id x37so250709nfc for ; Tue, 28 Jun 2005 15:10:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rwZChMu/fYJgHgJCf0sMWvfj3dBe/TvpIlUY8/XgDRr3Y92/8WDYb7OB5DphExnTthPpTSs5DNw+jBDRYm9LSt09nT32Qy9DdVDjCzU78KAOs85x047ny5UWqFRZMHIcyL9slMFy5cxY2HuM/WJ1yeb1SmIxHNus7fql2XAbF5o= Received: by 10.48.3.12 with SMTP id 12mr171666nfc; Tue, 28 Jun 2005 15:10:01 -0700 (PDT) Received: by 10.48.49.14 with HTTP; Tue, 28 Jun 2005 15:10:01 -0700 (PDT) Message-ID: <4b09a0c0506281510239cbad4@mail.gmail.com> Date: Wed, 29 Jun 2005 00:10:01 +0200 From: Jean-Max Reymond Reply-To: Jean-Max Reymond To: pgsql-performance@postgresql.org Subject: Re: perl garbage collector In-Reply-To: <4b09a0c0506281147bc4b27f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4b09a0c050627134660b3925@mail.gmail.com> <11126.1119938006@sss.pgh.pa.us> <4b09a0c0506281147bc4b27f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/581 X-Sequence-Number: 13218 2005/6/28, Jean-Max Reymond : > For my application (in real life) afer millions of spi_exec_query, it > grows up to 1Gb :-( OK, now in 2 lines: CREATE FUNCTION jmax() RETURNS integer AS $_$use strict; for (my $i=3D0; $i<10000000;$i++) { spi_exec_query("select 'foo'"); } my $j=3D1;$_$ LANGUAGE plperlu SECURITY DEFINER running this test and your postmaster eats a lot of memory. it seems that there is a memory leak in spi_exec_query :-(=20 --=20 Jean-Max Reymond CKR Solutions Open Source Nice France http://www.ckr-solutions.com