From: Marko Ristola <marko.ristola@kolumbus.fi>
To: Greg Campbell <greg.campbell@us.michelin.com>
Cc: Robin Weber <rweber@pmc.ucsc.edu>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC Driver Failure- MS Access- Large record volume
Date: Sat, 10 Sep 2005 09:41:49 +0300
Message-ID: <4322802D.4030502@kolumbus.fi> (raw)
In-Reply-To: <4321DC1B.6030503@us.michelin.com>
References: <6.2.1.2.0.20050908130239.070e6388@pmc.ucsc.edu>
<4320AD4D.3000506@us.michelin.com>
<6.2.1.2.0.20050908143521.070e6760@pmc.ucsc.edu>
<4321DC1B.6030503@us.michelin.com>
Hi.
I haven't read all you emails.
If you use psqlodbc, you need the following thing:
psqlodbc driver must be configured to support several millions of
records for 32 bit operating
systems:
ODBC handle must have:
UseDeclareFetch=1
Fetch=32
So this enables a feature, that does use about a constant amount of memory
during SELECT. You are able to query tens of millions of rows without a
memory
allocation failure. So the problem seems to be with you, a memory
allocation failure.
Without the above configuration, the crash point might come with 8
million of rows.
The crash point depends on the operating system and it's version as well as
the average size of one query result row in memory.
The above configuration option affects query plans also,
but at least there is no crash.
I don't know, wether the application itself supports so many rows.
psqlodbc should be fine
with the correct options. It would be nice, if you can verify that your
psqlodbc driver version
works with the constant amount of memory.
Regards, Marko Ristola
Greg Campbell wrote:
> I hope using the driver version Dave P. suggests solves your problem.
>
> It sounds difficult to troubleshoot. I would say use care when turning
> logging on at the server. Not so much because of resources, but you
> need to configure PostgreSQL for what you want to log. That is edit
> the postgresql.conf file. Note the log_statement parameter. You could
> start with just logging connections to see if any fail. It seems like
> it would be difficult to log millions of transactions to find one
> error. That's a hec of log file to look through. And turning on ODBC
> logging (client side via the ODBC Administrator) could (would) be even
> more taxing.
>
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, greg.campbell@us.michelin.com, rweber@pmc.ucsc.edu
Subject: Re: ODBC Driver Failure- MS Access- Large record volume
In-Reply-To: <4322802D.4030502@kolumbus.fi>
References: <6.2.1.2.0.20050908130239.070e6388@pmc.ucsc.edu> <4320AD4D.3000506@us.michelin.com> <6.2.1.2.0.20050908143521.070e6760@pmc.ucsc.edu> <4321DC1B.6030503@us.michelin.com> <4322802D.4030502@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