Re: Broken selectivity with special inet operators - Mailing list pgsql-bugs

From Josh Berkus
Subject Re: Broken selectivity with special inet operators
Date
Msg-id 4E7A547C.40700@agliodbs.com
Whole thread Raw
In response to Re: Broken selectivity with special inet operators  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Broken selectivity with special inet operators
List pgsql-bugs
On 9/21/11 1:56 PM, Tom Lane wrote:
> Josh Berkus <josh@agliodbs.com> writes:
>> Summary: special inet operators ( << >> <<= =>> ) are
>>     up to 1000000X off in estimating rowcounts
>
> A look in pg_operator will show you that these operators have no
> associated selectivity estimators at all.  It's not so much "broken"
> as "unimplemented".

Oh!  I was assuming that the special case code kicked in regardless.

So we implemented the rewrite to < and > for the actual execution, but
not for cost estimates?

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Broken selectivity with special inet operators
Next
From: "Eric Vollnogel"
Date:
Subject: BUG #6219: date_part() function producting incorrect year