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 3AC419DCAD5 for ; Fri, 27 Jan 2006 13:13:09 -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 21234-07 for ; Fri, 27 Jan 2006 13:13:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id AE5A09DCA67 for ; Fri, 27 Jan 2006 13:13:06 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k0RHD2Ji020518; Fri, 27 Jan 2006 18:13:02 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k0RHD2Zc020517; Fri, 27 Jan 2006 18:13:02 +0100 Date: Fri, 27 Jan 2006 18:13:02 +0100 From: Ludek Finstrle To: Zoltan Boszormenyi Cc: Ludek Finstrle , pgsql-odbc@postgresql.org Subject: Re: PsqlODBC slow on UNION queries Message-ID: <20060127171302.GA20396@soptik.pzkagis.cz> References: <43D518CF.4020404@dunaweb.hu> <20060123204710.GA25572@soptik.pzkagis.cz> <43D6A521.80701@dunaweb.hu> <20060124220154.GA32160@soptik.pzkagis.cz> <43D8FFB5.6010002@dunaweb.hu> <20060127092159.GA17431@soptik.pzkagis.cz> <43DA590E.4070403@dunaweb.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43DA590E.4070403@dunaweb.hu> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.088 required=5 tests=[AWL=0.088] X-Spam-Score: 0.088 X-Spam-Level: X-Archive-Number: 200601/290 X-Sequence-Number: 7105 > >SQLExecDirect select * from view (which fire the execution again) > > ... retrieve 1000+ rows and then _I_ pressed Cancel. Can you confirm that? > I am just curious. Yes. I see > 1000 < 1100 rows. You could go to the bottom of mylog (I see union one) and search backward "select * from v_invoice_browse". Then you search forward fetch ( = 100 in your configuration so you search "fetch 100"). I count 11 (I hope I don't create a mistake) "fetch 100" => > 1000 < 1100 :-) There is SQLCancel after last "fetch 100" ;-) > >create some repro app. Some of the questions: > >1) could you try similar view without text (char, varchar, ...) columns? > > Would the same view do but only seleting numeric (integer and decimal) > columns? Yes. It's enough. I don't know if the problem isn't char column handling. > >4) could you say me what are the query for (it's fired bettwen two calls > > of select * from view): ... > I don't know what are these. I guess PowerBuilder tries something > behind everyones' back. I think so. Could you try these selects in psql or PgAdmin tool? I'm curios what you see. Regards, Luf