Re: Index usage when bitwise operator is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> On Mon, Sep 17, 2007 at  8:37 AM, in message <21403.1190036229@xxxxxxxxxxxxx>,
Tom Lane <tgl@xxxxxxxxxxxxx> wrote: 
> "Kevin Grittner" <Kevin.Grittner@xxxxxxxxxxxx> writes:
>> On Mon, Sep 17, 2007 at  2:49 AM, in message
>> <1190015368.148293.56830@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, valgog
>> <valgog@xxxxxxxxx> 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?
 
My bad.  I did misread it.  Sorry, all.
 
-Kevin
 



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux