Re: BUG #4800: constraint_exclusion could be smarter with bool conversion - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4800: constraint_exclusion could be smarter with bool conversion
Date
Msg-id 7613.1241797452@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4800: constraint_exclusion could be smarter with bool conversion  ("Alex" <alex@xdcom.org>)
List pgsql-bugs
"Alex" <alex@xdcom.org> writes:
> I wish constraint_exclusion to be smarter with bool conversion so that
> 'select * from foo where (mask&5)::bool' can be faster;

Don't hold your breath.  It's tough enough deriving conclusions from
ordinary btree-indexable comparison operators.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: 42804: structure of query does not match error where using RETURN QUERY
Next
From: Peter Much
Date:
Subject: Re: BUG #4801: Performance failure: 600 MB written to each WAL log