pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: valgog <valgog@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index usage when bitwise operator is used
Date: Mon, 17 Sep 2007 09:37:09 -0400
Message-ID: <21403.1190036229@sss.pgh.pa.us> (raw)
In-Reply-To: <46EE2C53.EE98.0025.0@wicourts.gov>
References: <f97d4e240709130530ve3cc522g61ccca23335618f4@mail.gmail.com>
	<46ED7CCD.EE98.0025.0@wicourts.gov>
	<1190015368.148293.56830@y42g2000hsy.googlegroups.com>
	<46EE2C53.EE98.0025.0@wicourts.gov>

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> On Mon, Sep 17, 2007 at  2:49 AM, in message
> <1190015368.148293.56830@y42g2000hsy.googlegroups.com>, valgog
> <valgog@gmail.com> 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



view thread (10+ messages)  latest in thread

Message-ID: <21403.1190036229@sss.pgh.pa.us>
Permalink:  ../21403.1190036229@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21403.1190036229@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, valgog@gmail.com
  Subject: Re: Index usage when bitwise operator is used
  In-Reply-To: <21403.1190036229@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox