Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D39CE9FB3AF for ; Fri, 19 Jan 2007 12:07:34 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 75073-10 for ; Fri, 19 Jan 2007 12:07:13 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by postgresql.org (Postfix) with ESMTP id DDC669FB3AD for ; Fri, 19 Jan 2007 12:07:24 -0400 (AST) Received: by wr-out-0506.google.com with SMTP id 68so456578wra for ; Fri, 19 Jan 2007 08:07:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gXgRz+3k3BNtE9eRhISzA4iNdPOQIS9fIh3xnjkTLGZQsaB6H3ZnGX5eV03L1wdzsijRbBSjJNSDeqz8WpvXzt8XPnSNNHpo9n1fbHCsLmcxmJLLkXDrZKIVnbmzknjucwdQiFXN4OPEh8Ip7We93rUtlyQLmC4MIGbGV6Aj06g= Received: by 10.82.153.5 with SMTP id a5mr571200bue.1169222843032; Fri, 19 Jan 2007 08:07:23 -0800 (PST) Received: by 10.82.170.1 with HTTP; Fri, 19 Jan 2007 08:07:22 -0800 (PST) Message-ID: <1d4e0c10701190807x72445dc4s59d2a8cb21ff55c9@mail.gmail.com> Date: Fri, 19 Jan 2007 17:07:22 +0100 From: "Guillaume Smet" To: "Dave Cramer" Subject: Re: Memory leaks using refcursors Cc: "PostgreSQL JDBC" , "Tom Lane" In-Reply-To: <127FFFA1-CF4F-4CC5-A6EA-23442E2E0C69@fastcrypt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d4e0c10701171053t55e60a2epf3e395b5b97101b5@mail.gmail.com> <1d4e0c10701171527u744fd81eh6de7908599349af3@mail.gmail.com> <1d4e0c10701180057s2c2e4c85g50998c883bb470df@mail.gmail.com> <1E6DB692-8D5A-493F-9E1F-82130917EE77@postgresintl.com> <1d4e0c10701180646p56c18dcal2cb3526bd1050e63@mail.gmail.com> <1d4e0c10701180942i60edff8bt914258ab0e1761ac@mail.gmail.com> <212AA1E7-770A-4F24-B8DF-B11438F748F7@fastcrypt.com> <1d4e0c10701190526k3282d919l41e5d0d081b9ee25@mail.gmail.com> <127FFFA1-CF4F-4CC5-A6EA-23442E2E0C69@fastcrypt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/124 X-Sequence-Number: 16489 On 1/19/07, Dave Cramer wrote: > I believe the problem is in the server's XA code somehow not closing > unnamed parameters properly. > > If you could run the code I sent you and tell me if it causes a leak, > then that will confirm it. Sorry, I did not understand what you've asked me. I just run the test without the XA code and it has the memory leak with the old 408 driver. IMHO, it's quite logical as this memory leak has nothing to do with the transaction management as all the operations are in a big transaction. When I close the transaction, XA or not XA, the backend used by the connection returns to a normal memory usage. -- Guillaume