Re: BUG #4800: constraint_exclusion could be smarter with bool conversion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alex" <alex(at)xdcom(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4800: constraint_exclusion could be smarter with bool conversion
Date: 2009-05-08 15:44:12
Message-ID: 7613.1241797452@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Alex" <alex(at)xdcom(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Much 2009-05-08 16:04:15 Re: BUG #4801: Performance failure: 600 MB written to each WAL log
Previous Message Tom Lane 2009-05-08 15:33:32 Re: 42804: structure of query does not match error where using RETURN QUERY