Re: Sequence scans on indexed row

From: kp <pgsql(at)pobox(dot)gr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Sequence scans on indexed row
Date: 2003-04-20 15:17:43
Message-ID: 3EA2BA17.6060106@pobox.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
> The only way it's wrong is if the particular value being searched for is
> much less than 1/14th of the table. IIRC Postgres 7.1 does not have
> statistics about anything beyond the most common value of the column,
> and so it's easily misled by nonuniform data distributions. If that's
> your situation then an update to 7.2.* or 7.3.* seems called for.
And this is exactly the case... This is the data distribution for the
column with the 14 distinct values:
code | record_count
----------+--------------
| 186802
aa | 432
bb | 31557
cc | 5599
dd | 15511
ee | 8364
ff | 769796
gg | 328
hh | 4911
ii | 1904
jj | 9145
kk | 576944
ll | 2296

OK. I will upgrade my installation and see what happens.

Thanks very much for the advice.

Best regards...
kp

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message John M. Layman 2003-04-21 05:38:11 trouble migrating large objects from 7.1.3 to 7.3.2
Previous Message Tom Lane 2003-04-20 14:58:38 Re: Sequence scans on indexed row