X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1DD759FA38E for ; Wed, 10 May 2006 15:31:37 -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 44997-09 for ; Wed, 10 May 2006 15:31:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id E54FD9FA293 for ; Wed, 10 May 2006 15:31:30 -0300 (ADT) Received: from a-kretschmer.de (p54B3CB98.dip0.t-ipconnect.de [84.179.203.152]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id k4AIVL0G012172 for ; Wed, 10 May 2006 20:31:22 +0200 Received: from kretschmer by a-kretschmer.de with local (Exim 4.61) (envelope-from ) id 1FdtUB-0001As-C2 for pgsql-sql@postgresql.org; Wed, 10 May 2006 20:32:35 +0200 Date: Wed, 10 May 2006 20:32:35 +0200 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: Multi-column index not used, new flipped column index is Message-ID: <20060510183235.GB18485@KanotixBox> References: <20060510162143.96628.qmail@web50306.mail.yahoo.com> <446218D2.8030002@logix-tt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <446218D2.8030002@logix-tt.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/89 X-Sequence-Number: 25120 Markus Schaber schrieb: > Bitmap Index Scans can be your solution, but AFAIK they were invented in > 8.1. Right. > > For bitmap index scans, you have one index on fkColumnOne and one on > fkColumnTwo, and the query planner knows to combine them when both > columns are given in a WHERE clause. Yeah! The Bitmap Index Scan is a great thing. With some selects i have a performance-boost from 5 to 10, compared with 8.0. Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknow) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°