Re: [HACKERS] Index Puzzle for you

From: Kristofer Munn <kmunn(at)munn(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Index Puzzle for you
Date: 1999-12-29 07:10:36
Message-ID: Pine.LNX.4.04.9912290204480.9369-100000@munn.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> The thing that jumps out at me from this example is the much larger
> estimate of returned rows in the second case. The planner is clearly

Good catch! There were 296 possible issues the table. One had 86,544
articles associated with it. The next highest was 5,949. Then the
numbers drop to 630, 506, 412, 184 and then the rest are all under 62.
Out of curiosity, how does vacuum decide on the large estimate?

The maximum is 86,544.
The average row return for ixissue = x is 3412.
The median is 25.
The mode is 25.

ixissue is the result of a sequence.

Thanks for the heads up on this...

- K

Kristofer Munn * KMI * 973-509-9414 * AIM KrMunn * ICQ 352499 * www.munn.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Margarit Nickolov 1999-12-29 08:52:49 Index scan on CIDR field ?
Previous Message Tom Lane 1999-12-29 05:49:12 Re: [HACKERS] Index Puzzle for you