From: Craig Ringer <craig@postnewspapers.com.au>
To: Laurent Chouinard <laurent.chouinard@sem.ca>
Cc: pgsql-odbc@postgresql.org
Subject: Re: C# w/ ODBC, 2.1 million list select gives empty DataSet
Date: Wed, 13 Jan 2010 12:41:47 +0800
Message-ID: <4B4D4F0B.4000802@postnewspapers.com.au> (raw)
In-Reply-To: <4B4BB581.3050302@sem.ca>
References: <4B4BB581.3050302@sem.ca>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: craig@postnewspapers.com.au, laurent.chouinard@sem.ca
Subject: Re: C# w/ ODBC, 2.1 million list select gives empty DataSet
In-Reply-To: <4B4D4F0B.4000802@postnewspapers.com.au>
References: <4B4BB581.3050302@sem.ca> <4B4D4F0B.4000802@postnewspapers.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox