X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 988E4329EB0 for ; Wed, 15 Sep 2004 19:40:27 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52087-04 for ; Wed, 15 Sep 2004 18:40:22 +0000 (GMT) Received: from server.gpdnet.co.uk (gpdnet.plus.com [212.56.100.243]) by svr1.postgresql.org (Postfix) with ESMTP id 5A4D4329D8C for ; Wed, 15 Sep 2004 19:40:21 +0100 (BST) Received: from gary (unknown [192.168.1.2]) by server.gpdnet.co.uk (Postfix) with ESMTP id 71ADEFB88D for ; Wed, 15 Sep 2004 19:40:26 +0100 (BST) From: "Gary Doades" To: pgsql-odbc@postgresql.org Date: Wed, 15 Sep 2004 19:40:25 +0100 MIME-Version: 1.0 Subject: Latest ODBC Driver "unstable" Message-ID: <41489AA9.28032.533D78@localhost> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/29 X-Sequence-Number: 4404 It looks like the latest build of the PostgreSQL ODBC driver has problems. I have an application on Windows in .NET that I have been developing for some time using the ODBC drivers. Until recently I used the packaged installer to install 7.3.2 version of the driver. This is very stable with no unexpected problems. Backend is PostgreSQL 7.4.3 on Fedora Core 2 Recently I installed the latest build (7.5.02) and immediately began to experience ramdom crashes in my ASP.NET applications and .NET Windows apps. Dropping back to the 7.3.2 build all the problems went away. I have done several tests ONLY changing the ODBC driver and the results are consistent. Initially it looks like random buffer overflows/memory scribbling problems. Occasionally I get error messages from the driver with random bits of text on the end of the message. In .NET the ODBC Driver reports errors with a title of "Postgresql %s %s". Either someone has done something recently with buffer copying or it is the result of going Unicode-build only. I am not doing anything with cursors, just straightforward connect, execute, fetch, disconnect stuff. .NET puts lots of capability calls and datatype query for resultset calls of course. Looking at ODBC trace output I see no bad behaviour. The driver just crashes and takes the program with it sometimes. I also transfer data from SQLServer to PostgreSQL using DTS and the postgres ODBC driver. Using build 7.3.2 I get no problems at all. Using build 7.5.02 I get reports from SQLServer (DTS) like "Critical Error" and "data exception" at random points during the transfers. Unfortunately I don't currently have the tools to debug the driver. I will supply any information that I can, but given that this is Windows, there ain't a lot. Given that 8.0 is trying to make it into Windows, an unstable ODBC driver is going to taint the excellent efforts of the server porting. Given also that there is no-one to fix these problems it may be better to revert to a tried and trusted stable version (7.3.2) until this can get looked into. Cheers, Gary.