Re: BUG #13464: Optimizer fails to use partial index on boolean when selected via "IS" operator. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #13464: Optimizer fails to use partial index on boolean when selected via "IS" operator.
Date
Msg-id 17190.1435105732@sss.pgh.pa.us
Whole thread Raw
In response to BUG #13464: Optimizer fails to use partial index on boolean when selected via "IS" operator.  (corey.huinker@gmail.com)
Responses Re: BUG #13464: Optimizer fails to use partial index on boolean when selected via "IS" operator.  (Corey Huinker <corey.huinker@gmail.com>)
List pgsql-bugs
corey.huinker@gmail.com writes:
> Correct index is used on "WHERE y" and "WHERE y = true" but not "WHERE y IS
> TRUE".

y IS TRUE is not actually equivalent to the other two conditions ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #13463: fatal 28000 no pg_hba.conf entry for host
Next
From: Michael Paquier
Date:
Subject: Re: Re: windows 8 RTM compatibility issue (could not reserve shared memory region for child)