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 D7B458B9B16 for ; Thu, 3 Feb 2005 14:39:34 +0000 (GMT) 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 35479-09 for ; Thu, 3 Feb 2005 14:39:23 +0000 (GMT) Received: from ro.mikronika.com.pl (ni.mikronika.com.pl [213.17.224.83]) by svr1.postgresql.org (Postfix) with ESMTP id 49AA08B9D95 for ; Thu, 3 Feb 2005 14:39:24 +0000 (GMT) Received: from [192.168.0.56] (karol.mikronika.com.pl [192.168.0.56]) (authenticated bits=0) by ro.mikronika.com.pl (8.12.9/8.12.9/Debian-1) with ESMTP id j13EdNk3019086 for ; Thu, 3 Feb 2005 15:39:23 +0100 Message-ID: <4202379B.5020604@mikronika.com.pl> Date: Thu, 03 Feb 2005 15:39:23 +0100 From: Karol Szkudlarek User-Agent: Mozilla Thunderbird 1.0 (X11/20041222) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: 500 times slower X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------060001080400010806010701" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.207 tagged_above=0 required=5 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200502/10 X-Sequence-Number: 4900 This is a multi-part message in MIME format. --------------060001080400010806010701 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Hi! I have the program which using LOBS with postgresql. When I connect to local windows server or remote linux server everything is fine. But when I connect to remote Windows server the function SQLDirectExec runs 500 times longer than normally. Problem concerns postgres on Windows with version > 7.4.1 and also 8.0. 7.x runs under cygwin and 8.x natively. Previously in the old cygwin which contains 7.4.1 postgres the performance was ok. I've included simple test case which shows the problem. Karol --------------060001080400010806010701 Content-Type: text/plain; name="main2.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="main2.cpp" #include #include #include #include void ODBCError(SQLRETURN rc,const char*where,bool ignoreError=false) { bool terminate=true; const char*err; switch (rc) { case SQL_SUCCESS: err="SQL_SUCCESS" ;terminate=false;break; case SQL_SUCCESS_WITH_INFO:err="SQL_SUCCESS_WITH_INFO";terminate=false;break; case SQL_NO_DATA :err="SQL_NO_DATA" ;terminate=false;break; default: err="ERROR";break; } if(!ignoreError) if (terminate) { std::cerr<maxsize)||(ind==SQL_NO_TOTAL)) ind=maxsize; count+=ind; std::cerr<<'.';//<<"reading "<