pgsql: Change patternsel (LIKE/regex selectivity estimation) so that if

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Change patternsel (LIKE/regex selectivity estimation) so that if
Date: 2006-09-20 19:50:22
Message-ID: 20060920195022.095019FB295@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Change patternsel (LIKE/regex selectivity estimation) so that if there
is a large enough histogram, it will use the number of matches in the
histogram to derive a selectivity estimate, rather than the admittedly
pretty bogus heuristics involving examining the pattern contents. I set
'large enough' at 100, but perhaps we should change that later. Also
apply the same technique in contrib/ltree's <@ and @> estimator. Per
discussion with Stefan Kaltenbrunner and Matteo Beccati.

Modified Files:
--------------
pgsql/contrib/ltree:
ltree_op.c (r1.12 -> r1.13)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/ltree/ltree_op.c.diff?r1=1.12&r2=1.13)
pgsql/src/backend/utils/adt:
selfuncs.c (r1.212 -> r1.213)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/selfuncs.c.diff?r1=1.212&r2=1.213)
pgsql/src/include/utils:
selfuncs.h (r1.34 -> r1.35)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/selfuncs.h.diff?r1=1.34&r2=1.35)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2006-09-20 19:55:42 pgsql: Add AIX shared library support item to release notes.
Previous Message User Mario__ 2006-09-20 18:50:03 webtranslator - l10n: I corrected some little mistakes and now the