X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4E3A652ADD for ; Fri, 8 Jul 2005 13:37:56 -0300 (ADT) 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 98202-02 for ; Fri, 8 Jul 2005 16:37:46 +0000 (GMT) Received: from metux.de (seven.metux.de [193.16.1.1]) by svr1.postgresql.org (Postfix) with ESMTP id BF5B652A98 for ; Fri, 8 Jul 2005 13:37:41 -0300 (ADT) Received: (from weigelt@localhost) by metux.de (8.12.10/8.12.10) id j68FacK8027693 for pgsql-performance@postgresql.org; Fri, 8 Jul 2005 17:36:38 +0200 Date: Fri, 8 Jul 2005 17:36:38 +0200 From: Enrico Weigelt To: pgsql-performance@postgresql.org Subject: Re: Why the planner is not using the INDEX . Message-ID: <20050708153638.GD6368@nibiru.borg.metux.de> Reply-To: weigelt@metux.de Mail-Followup-To: pgsql-performance@postgresql.org References: <20050630222451.GA17628@calvin.surfutopia.net> <42C473BA.9090305@commandprompt.com> <20050630235821.GA2163@calvin.surfutopia.net> <42C994BD.3000909@siunik.com> <23492.1120579796@sss.pgh.pa.us> <42CAC937.4080702@siunik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42CAC937.4080702@siunik.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.107 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200507/90 X-Sequence-Number: 13331 * David Gagnon wrote: > FOR inventoryTransaction IN > SELECT DISTINCT IRNUM, IRAENUM, IRSTATUT, IRSENS, IRSOURCE, > IRDATE, IRQTE > FROM IR > WHERE IRNUM = ANY (requestIds) and IRYPNUM = companyId > LOOP hmm. you probably could create the query dynamically and then execute it. BTW: why isn't IN not usable with arrays ? cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service phone: +49 36207 519931 www: http://www.metux.de/ fax: +49 36207 519932 email: contact@metux.de --------------------------------------------------------------------- Realtime Forex/Stock Exchange trading powered by postgresSQL :)) http://www.fxignal.net/ ---------------------------------------------------------------------