Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 86F4D63221B for ; Wed, 13 Jan 2010 00:42:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 75797-06 for ; Wed, 13 Jan 2010 04:41:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by mail.postgresql.org (Postfix) with ESMTP id B6F08633AF9 for ; Wed, 13 Jan 2010 00:41:57 -0400 (AST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 6A8BA1E043F; Wed, 13 Jan 2010 12:41:54 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AD0bZRGlVv7U; Wed, 13 Jan 2010 12:41:52 +0800 (WST) Received: from [10.1.1.6] (124-169-133-89.dyn.iinet.net.au [124.169.133.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 5153B1E0438; Wed, 13 Jan 2010 12:41:52 +0800 (WST) Message-ID: <4B4D4F0B.4000802@postnewspapers.com.au> Date: Wed, 13 Jan 2010 12:41:47 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Laurent Chouinard CC: pgsql-odbc@postgresql.org Subject: Re: C# w/ ODBC, 2.1 million list select gives empty DataSet References: <4B4BB581.3050302@sem.ca> In-Reply-To: <4B4BB581.3050302@sem.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.939 tagged_above=-10 required=5 tests=AWL=-0.940, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201001/6 X-Sequence-Number: 10169 On 12/01/2010 7:34 AM, Laurent Chouinard wrote: > With the new drivers, it still climbs to 700MB or so (makes sense, 2 > million rows is quite a bit), and then after the "0 rows" returned, > memory is cleared immediately. Makes sense as well, OBDC doesn't carry > data anymore, dataset is almost null, garbage collector is having a > field day. I don't use ODBC much personally and don't work on the driver - but it sounds to me a lot like the new driver may be running out of memory too, but is eating the failure (or reporting it via some side-channel) rather than throwing. If it is, that'd be pretty bad behavior in my personal opinion, but then I don't know ODBC well. Someone who does may be able to shed some more light. My suggestion, though: Even if you resolve this now, as things continue to grow you're still going to have OOM issues. Perhaps it'd be a good idea to use a cursor for this? -- Craig Ringer