Re: Sequence scans on indexed row

From: Tim Ellis <pvspam-postgres(at)hacklab(dot)net>
To: kp <pgsql(at)pobox(dot)gr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Sequence scans on indexed row
Date: 2003-04-20 06:06:31
Message-ID: 1050818790.8042.98.camel@timetop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sat, 2003-04-19 at 22:36, kp wrote:
> The other difference between these two columns (or rather the kind of
> data they contain) is that the column for which postgres *uses* the
> index on contains around 32000 distinct values while the other only
> contains 14 distinct values.

Did you do a vacuum analyze on the tables in question? There are some
other more complex possibilities, but best to start w/ the basics.

--
Tim Ellis
Senior Database Architect and author, tedia2sql (http://tedia2sql.tigris.org)
If this helped you, http://svcs.affero.net/rm.php?r=philovivero

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-04-20 14:58:38 Re: Sequence scans on indexed row
Previous Message Ricardo Sardano Guanciale 2003-04-20 05:52:10 no password required