X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ECE2ED99BC for ; Wed, 2 Nov 2005 18:15:46 -0400 (AST) 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 16197-10 for ; Wed, 2 Nov 2005 22:15:44 +0000 (GMT) Received: from fep32-app.kolumbus.fi (fep32-0.kolumbus.fi [193.229.0.63]) by svr1.postgresql.org (Postfix) with ESMTP id E3B59D9701 for ; Wed, 2 Nov 2005 18:15:44 -0400 (AST) Received: from [192.168.1.101] (really [80.186.79.194]) by fep32-app.kolumbus.fi with ESMTP id <20051102221545.EMNM9722.fep32-app.kolumbus.fi@[192.168.1.101]>; Thu, 3 Nov 2005 00:15:45 +0200 Message-ID: <43693A93.4030209@kolumbus.fi> Date: Thu, 03 Nov 2005 00:15:47 +0200 From: Marko Ristola User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: Johann Zuschlag , anoopk@pervasive-postgres.com, pgsql-odbc@postgresql.org Subject: Re: Declare/Fetch References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.068 required=5 tests=[AWL=0.068] X-Spam-Score: 0.068 X-Spam-Level: X-Archive-Number: 200511/14 X-Sequence-Number: 6251 Hi all. I couldn't confirm, that the memory behaviour is good for Declare/Fetch. My tests lost memory about 125M, but the behaviour should be good with forward only cursors (about 5M proccess memory). Without Declare/Fetch query result consumed 40M memory (600000 rows fetch). I used Fetch=2, because it tells the worst behaviour. So the idea with Declare/Fetch is that the memory footprint with the process is constant, while reading millions of rows from the database. Regards, Marko Ristola Dave Page wrote: >Hi Marko, > >I just committed a fix for this which passes your test program, and a >variety of manual tests in the MS ODBC test program. > >Basically what was happening was that each set of results was read into >the same block of cache, but when it extracted the values to send to >copy_and_convert, it assume that each tuple was offset by the total >number of tuples from the start of the cache, where it was actually >offset by the tuple number within that set. If that makes sense :-). > >Can you give it a whirl please? > >Regards, Dave. > >