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 707FE9DC813 for ; Wed, 11 Jan 2006 04:14:12 -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 17769-09 for ; Wed, 11 Jan 2006 04:14:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linux.dunaweb.hu (linux.dunaweb.hu [62.77.196.1]) by postgresql.org (Postfix) with ESMTP id 296CA9DC802 for ; Wed, 11 Jan 2006 04:14:09 -0400 (AST) Received: from localhost (linux.dunaweb.hu [127.0.0.1]) by linux.dunaweb.hu (Postfix) with ESMTP id 278EA8E03F9; Wed, 11 Jan 2006 09:14:10 +0100 (CET) Received: from linux.dunaweb.hu ([127.0.0.1]) by localhost (linux.dunaweb.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31373-08; Wed, 11 Jan 2006 09:14:07 +0100 (CET) Received: from [81.17.177.202] (host-81-17-177-202.dunaweb.hu [81.17.177.202]) by linux.dunaweb.hu (Postfix) with ESMTP id 734CE8E059F; Wed, 11 Jan 2006 09:13:59 +0100 (CET) Message-ID: <43C4C670.5020407@dunaweb.hu> Date: Wed, 11 Jan 2006 09:48:48 +0100 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: Ludek Finstrle Cc: pgsql-odbc@postgresql.org Subject: Re: PsqlODBC slow on UNION queries References: <43C1F84A.90707@dunaweb.hu> <25908.1136783922@sss.pgh.pa.us> <43C1FEEF.5060107@dunaweb.hu> <20060109085745.GC29135@soptik.pzkagis.cz> <43C253CD.8080501@dunaweb.hu> <20060109115916.GC30591@soptik.pzkagis.cz> <20060110211559.GB8098@soptik.pzkagis.cz> In-Reply-To: <20060110211559.GB8098@soptik.pzkagis.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at dunaweb.hu X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.038 required=5 tests=[AWL=0.038] X-Spam-Score: 0.038 X-Spam-Level: X-Archive-Number: 200601/104 X-Sequence-Number: 6919 Ludek Finstrle írta: >>>If I set only Declare/Fetch or both to ON, opening the VIEW in Access >>>comes close to what I experinced in psql, e.g. it appears almost instantly >>>when using UNION ALL, and just under 7 seconds when using UNION. >>> >>>I don't remember which ODBC settings I used for the Windows2000 client >>>and PowerBuilder, I am not near that machine. I will recheck it when >>>I get back to my workplace next monday. >>> >>> >>There is another thing. psqlODBC driver simulate SQLColAttributes (I wrote >>it on the fly so it could be different ODBC API) throught call >>the query and then get the columns information before query is already >>open. So it could be the time bottleneck. >>I try describe it better: >>SQLPrepare, SQLColAttributes (this call the statement for getting columns >>information), SQLExecute (this call the statement for result). >> >>If you want trace it down the good start point is turn mylog output on >>and read the result in C:\mylog_XXXX.log (or txt extension?). >> >> > >I forgot. Feel free to send the mylog output here to list. We can >help you to decode it ;-) > > I will, when I am back to my workplace. In the meantime, I have set MyLog on in WinXP under VMWare here, but Access produced some 120+ MB log and it wasn't even finished reading the records... I didn't feel like I have to send it to the list. ;-) Anyway, it turned out it used DECLARE CURSOR and it fetched 100 records at a time. Best regards, Zoltán Böszörményi