Re: LIKE OPERATOR cardinality estimation - Mailing list pgsql-general

From Tom Lane
Subject Re: LIKE OPERATOR cardinality estimation
Date
Msg-id 16991.1163142383@sss.pgh.pa.us
Whole thread Raw
In response to LIKE OPERATOR cardinality estimation  ("sumit kumar" <talk2mitsu@googlemail.com>)
List pgsql-general
"sumit kumar" <talk2mitsu@googlemail.com> writes:
> Can any1 please please help me know how pgsql estimates the cardinality of
> LIKE operator ??

See patternsel() and subsidiary routines in
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/selfuncs.c
for whichever version you are interested in.  (This code has changed
often enough that there's no version-independent answer to your
question.)

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 8.1.2 postmaster died
Next
From: Richard Broersma Jr
Date:
Subject: Re: AutoVacuum on demand?