From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Broken selectivity with special inet operators
Date: Wed, 21 Sep 2011 14:17:48 -0700
Message-ID: <4E7A547C.40700@agliodbs.com> (raw)
In-Reply-To: <29153.1316638577@sss.pgh.pa.us>
References: <4E7A4923.1020900@agliodbs.com>
<29153.1316638577@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us
Subject: Re: Broken selectivity with special inet operators
In-Reply-To: <4E7A547C.40700@agliodbs.com>
References: <4E7A4923.1020900@agliodbs.com> <29153.1316638577@sss.pgh.pa.us> <4E7A547C.40700@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox