Gregory Stark <stark@enterprisedb.com> writes:
> Could we not use the bogus range to calculate the histogram estimate
> but apply the LIKE pattern directly to the most-frequent-values
> instead of applying the bogus range? Or would that be too much code
> re-organization for now?
We have already done that for quite some time. It won't help
Guillaume's case anyhow: he's got no MCVs, presumably because the field
is unique.
regards, tom lane