From: Marko Ristola <Marko.Ristola@kolumbus.fi>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Cc: Anoop Kumar <anoopk@pervasive-postgres.com>
Subject: Critical Bug with UseDeclareFetch in development version
Date: Tue, 06 Sep 2005 17:52:04 +0300
Message-ID: <431DAD14.6070601@kolumbus.fi> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9EAB@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9EAB@ratbert.vale-housing.co.uk>
There is one inconvinient bug in the driver:
I tested this with the very least CVS version, so it exists.
psql
> select * from test1;
(104 rows)
isql marko XXX
2 rows returned
So I get the above result by configuring .odbc.ini:
[marko]
Fetch = 2
UseDeclareFetch = 1
So unfortunately it fetches too few rows.
Old behaviour:
1. SELECT * from test1 with cursor STM7737819
2. While more rows; do Fetch at most 2 rows; done
3. CLOSE CURSOR maybe with STMT_DROP.
So this hack was implemented to support SELECT * of more than
a few million rows.
So without this hack, with 32 bit operating systems, query results are
limited
into maybe 8 million rows, before memory allocation failure. I don't
remember
the exact number of millions. Of course the exact million depends
heavily with the result row width and with the Operating system memory
architecture.
So, it seems that the hack implementation has been partially removed,
but it is still active.
Regards,
Marko Ristola
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: Marko.Ristola@kolumbus.fi, dpage@vale-housing.co.uk, anoopk@pervasive-postgres.com
Subject: Re: Critical Bug with UseDeclareFetch in development version
In-Reply-To: <431DAD14.6070601@kolumbus.fi>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9EAB@ratbert.vale-housing.co.uk> <431DAD14.6070601@kolumbus.fi>
* 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