pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
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 14:35:34 +0900
Message-ID: <4B4D5BA6.2060907@tpf.co.jp> (raw)
In-Reply-To: <4B4BB581.3050302@sem.ca>
References: <4B4BB581.3050302@sem.ca>

Laurent Chouinard wrote:
> Hi everyone,
> 
> I've been using the ODBC driver for Windows along with my C# (Framework 
> 2.0) for a few years now and it's been working very nicely.
> 
> Until now.
> 
> One of my customer's database has grown to considerable size over time, 
> and in particular, one report he attemps to do in my software gives an 
> empty report.
> 
> Upon investigation, I determined that the SELECT I send to the 
> postgresql gets processed properly and it probably hands over about 2.1 
> million rows as the response. After that, I use the "Fill" method as 
> instructed in the "HOW TO" section in the ODBC documentation to fill the 
> data into a DataSet object.
> 
> After considerable amount of work (almost the same as when I do that 
> same query in PgAdmin III, about 110 seconds), the DataSet gets 
> initialized empty, with zero tables in it. No errors, no exceptions. 
> Everything moves along as if nothing happened.
> 
> I just upgraded to the latest ODBC drivers (dated december 2009) and 
> it's not changing my issue.

Hmmm, 2.1 millions of rows are too many. Possibly "Out of memory
  while reading tuples" error occurs but the driver forgets to handle
it in some cases. Please try the drivers on testing for 8.4.0201 at
   http://www.geocities.jp/inocchichichi/psqlodbc/index.html .
You may be able to improve the memory usage by checking the "Use 
Declare/Fetch" option.

regards,
Hiroshi Inoue




view thread (4+ messages)  latest in thread

Message-ID: <4B4D5BA6.2060907@tpf.co.jp>
Permalink:  ../4B4D5BA6.2060907@tpf.co.jp/
Also on:    postgresql.org/message-id/4B4D5BA6.2060907@tpf.co.jp

 · 

reply

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: inoue@tpf.co.jp, laurent.chouinard@sem.ca
  Subject: Re: C# w/ ODBC, 2.1 million list select gives empty DataSet
  In-Reply-To: <4B4D5BA6.2060907@tpf.co.jp>
  References: <4B4BB581.3050302@sem.ca> <4B4D5BA6.2060907@tpf.co.jp>

* 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