X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8FCF69FB1CB for ; Tue, 1 Aug 2006 06:56:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 21577-01 for ; Tue, 1 Aug 2006 06:56:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.codata.be (217.64.244.119.mactelecom.net [217.64.244.119]) by postgresql.org (Postfix) with SMTP id AB41D9FA6B2 for ; Tue, 1 Aug 2006 06:56:03 -0300 (ADT) Received: FROM [217.112.177.238] BY mail.codata.be with hMailServer ; Tue, 1 Aug 2006 11:56:01 +0200 Message-ID: <44CF252F.6080409@freesurf.fr> Date: Tue, 01 Aug 2006 11:55:59 +0200 From: Arnaud Lesauvage User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0631-0, 31/07/2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.513 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200608/3 X-Sequence-Number: 7967 Hi list This is a follow-up to http://archives.postgresql.org/pgsql-odbc/2006-02/msg00067.php Let me sum up the problem : I run a query in pgadmin into a file (to be sure that all data is transfered). It runs very fast (in about 10sec), and data is transfered from the server at a very fast rate (~1MB per second). I run the same query via psqlodbc in a VBA application. It takes ages to run and data is transfered at a very slow pace (~80kB per second). The query returns the WKT representation of a geometry, so it returns a very long varchar field. Last time we discussed this problem, we thought the problem was with TCP_NO_DELAY. We hadn't found out why the TCP/IP stack behaved differently in pgadmin and in psqlodbc. I am still experiencing this behaviour, even though I installed postgresql on a brand new server, and my workstation was also just reinstalled. Since the problem is still there, I'd like to know if newer versions of psqlodbc could have changed things. I am still using the latest official releases (8.01.0200), but maybe there are beta release I could try ? Any help would be greatly appreciated ! Thanks a lot -- Arnaud