Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2B90C9FB36D for ; Fri, 19 Jan 2007 09:27:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 31423-04 for ; Fri, 19 Jan 2007 09:26:53 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id 2A5D19FB362 for ; Fri, 19 Jan 2007 09:26:57 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so441794ugf for ; Fri, 19 Jan 2007 05:26:56 -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=T2AvXFNt9J9C6WQz1Ypc1czLooQUDlvdhY2GL9A4YOubp26XRG+ILQ/9AH3hAh+vQNcO6W7ln/+bN22pBfxOVggF9UyhUtc4fdOi1MWbd+Wm3orpqdbpqJ4V8i/BRs8qJrDHfaXkkUJtSuo22wS+XQjugqj0UePDaZJIupGfezA= Received: by 10.82.107.15 with SMTP id f15mr515230buc.1169213215923; Fri, 19 Jan 2007 05:26:55 -0800 (PST) Received: by 10.82.170.1 with HTTP; Fri, 19 Jan 2007 05:26:55 -0800 (PST) Message-ID: <1d4e0c10701190526k3282d919l41e5d0d081b9ee25@mail.gmail.com> Date: Fri, 19 Jan 2007 14:26:55 +0100 From: "Guillaume Smet" To: "Dave Cramer" Subject: Re: Memory leaks using refcursors Cc: "PostgreSQL JDBC" , "Tom Lane" In-Reply-To: <212AA1E7-770A-4F24-B8DF-B11438F748F7@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> <1d4e0c10701171422u2e9d8758ia663dd1f826f8258@mail.gmail.com> <6135.1169073075@sss.pgh.pa.us> <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> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/121 X-Sequence-Number: 16486 Hi Dave, On 1/19/07, Dave Cramer wrote: > I've asked Guillaume to test this hypothesis with his test case that > does not use XA to see if the memory "leak" still exists without XA Perhaps I was not clear when I explained the remaining problem. I don't have any memory leak left. The attached file is a test case which shows the new problem. The commit is done before closing the resultset and so the close() method can't find the portal which results in an exception (the portal is closed on commit). It's probably not something we should do but before there was no error in this case and now it throws an exception which is not really clear for the end user: An exception has occured.ERROR: cursor "" does not exist org.postgresql.util.PSQLException: ERROR: cursor "" does not exist -- Guillaume