From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Ray Ontko <rayo(at)ontko(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Are statistics gathered on function indexes? |
Date: | 2002-06-28 18:30:02 |
Message-ID: | 200206281830.g5SIU3g19814@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Tom Lane wrote:
> As you can see, the estimate drops off by about a factor of 90 per
> added character. This is probably too much, but it's not that easy
> to determine what the ratio ought to be. The critical code involved
> in this is convert_string_to_scalar in backend/utils/adt/selfuncs.c;
> the ratio per character is essentially the same as the character range
> that it induces from the available values. Feel free to propose a
> better implementation if you can think of one.
FYI, 7.3 will drop off quicker than <=7.2.X:
* Change FIXED_CHAR_SEL to 0.20 from 0.04 to give better selectivity (Bruce)
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-06-28 18:39:36 | Re: Are statistics gathered on function indexes? |
Previous Message | Björn Lundin | 2002-06-28 16:58:14 | Re: Postmaster environment variables |