pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Ristola <marko.ristola@kolumbus.fi>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: What to do about errors returned by odbc
Date: Sat, 02 Jul 2005 10:17:04 +0300
Message-ID: <42C63F70.10100@kolumbus.fi> (raw)
In-Reply-To: <000e01c57e3a$a8d1eca0$797ba8c0@jfradkin>
References: <000e01c57e3a$a8d1eca0$797ba8c0@jfradkin>


This might be a memory issue on 32bit computers.
psqlodbc loads the whole query result into memory by default,
on Windows too.

IIS or Windows might supply memory at most 1-3 gigabytes for the CGI binary.
So the actual upper limit might actually be much less, than 4G.

This can be overcome by using ODBC directives like:

Fetch = 2048
UseDeclareFetch = 1

Regards,
Marko Ristola

Joel Fradkin wrote:

> I am running 8.0.3 database with 7.4 odbc.
>
> I am working on getting my ASCII over to Unicode so I can use the
> newer odbc.
>
> I get on a too often basis the ODBC lock up on the IIS server (I can
> re-boot IIS and see ODBC come back).
>
> The machine is not out of memory (4 gig Dell running win2k, database
> is on a 8 gig redhat box).
>
> Unfortunately I display the error returned from the object and it
> includes the text “Catastrophic Error”.
>
> This has been bad and I need to fix it, but I believe if I understand
> my initial research it is actually an error from MS (either IIS or the
> ODBC layer).
>
> Since it does not appear to be a memory issue (last time I had it
> happen the machine was at 500 meg of 2 gig used by IIS) I am looking
> for ideas as what to look for.
>
> Our application was on MSSQL and did not have errors with the odbc
> (servers were very stable) to MSSQL.
>
> I have us converted and eliminated most of the application type errors
> from the conversion, but the odbc to postgres I think is our issue
> (may be how we have it coded).
>
> I am not using any kind of pooling (not sure if IIS does this on its
> own as I do not see a million connections and we generally have 200+
> concurrent users).
>
> Any ideas I can research would be greatly appreciated.
>
> Joel Fradkin
>
> Wazagua, Inc.
> 2520 Trailmate Dr
> Sarasota, Florida 34243
> Tel. 941-753-7111 ext 305
>
> jfradkin@wazagua.com <mailto:jfradkin@wazagua.com>
> www.wazagua.com <http://www.wazagua.com;
> Powered by Wazagua
> Providing you with the latest Web-based technology & advanced tools.
> © 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
> This email message is for the use of the intended recipient(s) and may
> contain confidential and privileged information. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not
> the intended recipient, please contact the sender by reply email and
> delete and destroy all copies of the original message, including
> attachments.
>
>




view thread (2+ messages)

Message-ID: <42C63F70.10100@kolumbus.fi>
Permalink:  ../42C63F70.10100@kolumbus.fi/
Also on:    postgresql.org/message-id/42C63F70.10100@kolumbus.fi

 · 

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: marko.ristola@kolumbus.fi, jfradkin@wazagua.com
  Subject: Re: What to do about errors returned by odbc
  In-Reply-To: <42C63F70.10100@kolumbus.fi>
  References: <000e01c57e3a$a8d1eca0$797ba8c0@jfradkin> <42C63F70.10100@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