Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 831322E005B for ; Tue, 8 Apr 2008 08:02:09 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45024-10 for ; Tue, 8 Apr 2008 08:02:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from ppsw-6.csi.cam.ac.uk (ppsw-6.csi.cam.ac.uk [131.111.8.136]) by developer.postgresql.org (Postfix) with ESMTP id D85242E005A for ; Tue, 8 Apr 2008 08:02:03 -0300 (ADT) X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from flymine.sysbiol.cam.ac.uk ([131.111.60.120]:56295 helo=flymine.flymine.org) by ppsw-6.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.136]:25) with esmtp id 1JjBaS-0008TV-Jq (Exim 4.67) for pgsql-performance@postgresql.org (return-path ); Tue, 08 Apr 2008 12:02:00 +0100 Received: from host103 ([192.168.128.103] helo=aragorn.flymine.org ident=Debian-exim) by flymine.flymine.org with esmtp (Exim 4.12) id 1JjBaS-0005tJ-00 for pgsql-performance@postgresql.org; Tue, 08 Apr 2008 12:02:00 +0100 Received: from mnw21 (helo=localhost) by aragorn.flymine.org with local-esmtp (Exim 4.69) (envelope-from ) id 1JjBaS-0007Ur-2F for pgsql-performance@postgresql.org; Tue, 08 Apr 2008 12:02:00 +0100 Date: Tue, 8 Apr 2008 12:02:00 +0100 (BST) From: Matthew X-X-Sender: mnw21@aragorn.flymine.org To: pgsql-performance@postgresql.org Subject: Re: Forcing more agressive index scans for BITMAP AND In-Reply-To: <1207633371.26613.21.camel@neuromancer.home.net> Message-ID: References: <1207556151.19677.2.camel@neuromancer.home.net> <1207633371.26613.21.camel@neuromancer.home.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/87 X-Sequence-Number: 29580 On Tue, 8 Apr 2008, Ow Mun Heng wrote: > I moved from multicolumn indexes to individual indexes because the > queries does not always utilise the same few indexes, some users would > use > > eg: index F, A, B or D,A,E or any other combination. Yes, that does make it more tricky, but it still may be best to use multicolumn indexes. You would just need to create an index for each of the combinations that you are likely to use. Matthew -- "To err is human; to really louse things up requires root privileges." -- Alexander Pope, slightly paraphrased