Re: BUG #5702: pg fails to use a conditional index even the where clause matches the condition - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5702: pg fails to use a conditional index even the where clause matches the condition
Date
Msg-id 2080.1286767544@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5702: pg fails to use a conditional index even the where clause matches the condition  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: BUG #5702: pg fails to use a conditional index even the where clause matches the condition  (Netskin | Corin Langosch <clangosch@netskin.com>)
List pgsql-bugs
Jeff Davis <pgsql@j-davis.com> writes:
> On Sat, 2010-10-09 at 23:28 +0000, Corin wrote:
>> I'd consider this a bug as "NOT x IS NULL" is the same as "x IS NOT NULL".

> That is false.

It's true for scalar input datatypes, though.

I had been wary of this idea because I didn't see any suitably cheap
place to insert the necessary processing, but after some reflection
and rejiggering of eval_const_expression's responsibilities, it's
done.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Craig Ringer
Date:
Subject: Re: BUG #5699: Postgres runs only under default user.
Next
From: Tom Lane
Date:
Subject: Re: wrong timezone precision using plpythonu trigger