X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 335CF9DC848 for ; Wed, 25 Jan 2006 08:28:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66226-09 for ; Wed, 25 Jan 2006 08:28:25 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 41C109DC829 for ; Wed, 25 Jan 2006 08:28:20 -0400 (AST) Received: from mail.codata.be (217.64.244.119.mactelecom.net [217.64.244.119]) by svr4.postgresql.org (Postfix) with SMTP id 962385AF04A for ; Wed, 25 Jan 2006 12:28:23 +0000 (GMT) Received: FROM [217.112.177.158] BY mail.codata.be with hMailServer ; Wed, 25 Jan 2006 13:28:19 +0100 Message-ID: <43D76EE3.7060108@free.fr> Date: Wed, 25 Jan 2006 13:28:19 +0100 From: Arnaud Lesauvage User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Dave Page Cc: Ludek Finstrle , pgsql-odbc@postgresql.org Subject: Re: Slow query through ODBC References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.121 required=5 tests=[AWL=0.120, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.121 X-Spam-Level: X-Archive-Number: 200601/305 X-Sequence-Number: 7120 Dave Page a écrit : >> From: Ludek Finstrle [mailto:luf@pzkagis.cz] >> It seems to me I have to kick Dave to take a look at this :-) >> Dave is pgAdmin developer so he could give a light on the problem. >> >> Dave: Could you take a look at this problem? > > Arnaud, > > When you are testing, please make sure that the psqlODBC's mylog and > commlog are switched off, and that SQL Tracing is turned off in the ODBC > control panel applet. > > Also, please note that pgAdmin has very lightweight data access classes > written over libpq - much more lightweight than the ODBC driver. Most of > the overhead in pgAdmin comes from rendering the data in the grid > control. > > Regards, Dave. Dave, All logging is off when I run tests. I only turned them on on Ludek's request for debugging purposes. Tracing is always off in the ODBC pannel. What looks strange to me is that while the query is running (during the "open" method of the recordset), processor usage is 0% on the server and the workstation. Network usage is very low : ~50kB on a 100Mbps connection, during the entire query. In pgAdmin, the query is immediate and there is just a pike in the network traffic when the data is received. That's what I was expecting to see through psqlODBC also... Regards -- Arnaud