Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 3EBD99FA0B2 for ; Tue, 18 Sep 2007 07:36:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 29332-03 for ; Tue, 18 Sep 2007 07:36:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 356D79F9F82 for ; Tue, 18 Sep 2007 07:36:28 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id C80CA31439; Tue, 18 Sep 2007 12:36:25 +0200 (MET DST) From: valgog X-Newsgroups: pgsql.performance Subject: Re: Index usage when bitwise operator is used Date: Tue, 18 Sep 2007 10:36:23 -0000 Organization: http://groups.google.com Lines: 34 Message-ID: <1190111783.077030.48670@22g2000hsm.googlegroups.com> References: <46ED7CCD.EE98.0025.0@wicourts.gov> <1190015368.148293.56830@y42g2000hsy.googlegroups.com> <46EE2C53.EE98.0025.0@wicourts.gov> <21403.1190036229@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Complaints-To: groups-abuse@google.com In-Reply-To: <21403.1190036229@sss.pgh.pa.us> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 22g2000hsm.googlegroups.com; posting-host=62.220.8.122; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.059 tagged_above=0 required=5 tests=AWL=0.058, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200709/306 X-Sequence-Number: 26851 Hi Tom, do you think it would be a good idea to ask GIN index team to implement an int-based bitmap set indexing operator for GIN/GiST based indexes? Or there will be a possibility to somehow optimally index arrays of enumerations to implement such bitmap structures in 8.3 or later postgresql versions? With best regards, -- Valentine On Sep 17, 3:37 pm, t...@sss.pgh.pa.us (Tom Lane) wrote: > "Kevin Grittner" writes: > > On Mon, Sep 17, 2007 at 2:49 AM, in message > > <1190015368.148293.56...@y42g2000hsy.googlegroups.com>, valgog > > wrote:=20 > >> Are you sure you understood what was the question? > > >> Is the TBL1.CATEGORY = TBL2.CATEGORY the same as TBL1.CATEGORY & > >> TBL2.CATEGORY > 0? > > Yes, given that he stipulated that one and only one bit would be set. > > Really? In that case, isn't this bit-field just a bad implementation of > an enum-style field? > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majord...@postgresql.org so that your > message can get through to the mailing list cleanly