From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Mike Porter <mike(at)udel(dot)edu> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: INET datatype and '<<' operator results in bad row estimate |
Date: | 2014-07-15 18:43:56 |
Message-ID: | 8218.1405449836@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Mike Porter <mike(at)udel(dot)edu> writes:
> Postgres version: 9.3.4
> Note: This behavior appears to have been fixed in 9.4-beta1. I am
> reporting it in case it can be fixed in 9.3.x. Perhaps it should be
> mentioned in the 9.4.x release notes (or did I miss it?)
Before 9.4, inet<<inet had no selectivity estimator at all, so you got
a default selectivity estimate of 0.5. In 9.4 there is an estimator
function, but it's only a stub returning a constant estimate of 0.001;
so that makes this example better but only by luck. There's some work in
progress to replace the stub with real selectivity estimation, but it
won't appear in any release before 9.5:
If you're interested, please help test that patch.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-07-15 19:19:30 | Re: Compile fails on AIX 6.1 |
Previous Message | Mike Porter | 2014-07-15 18:17:45 | INET datatype and '<<' operator results in bad row estimate |