Re: LIKE OPERATOR cardinality estimation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "sumit kumar" <talk2mitsu(at)googlemail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LIKE OPERATOR cardinality estimation
Date: 2006-11-10 07:06:23
Message-ID: 16991.1163142383@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"sumit kumar" <talk2mitsu(at)googlemail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-11-10 07:18:26 Re: 8.1.2 postmaster died
Previous Message surabhi.ahuja 2006-11-10 06:33:10 how can i prove that this issue on PG 8.0.0 ERROR: index "patient_pkey" is not a btree is solved in 8.0.9