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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: corey(dot)huinker(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13464: Optimizer fails to use partial index on boolean when selected via "IS" operator.
Date: 2015-06-24 00:28:52
Message-ID: 17190.1435105732@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

corey(dot)huinker(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

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