From: Tim Ellis <pvspam-postgres@hacklab.net>
To: kp <pgsql@pobox.gr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Sequence scans on indexed row
Date: 19 Apr 2003 23:06:31 -0700
Message-ID: <1050818790.8042.98.camel@timetop> (raw)
In-Reply-To: <3EA231D2.2040305@pobox.gr>
References: <3EA231D2.2040305@pobox.gr>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pvspam-postgres@hacklab.net, pgsql@pobox.gr
Subject: Re: Sequence scans on indexed row
In-Reply-To: <1050818790.8042.98.camel@timetop>
References: <3EA231D2.2040305@pobox.gr> <1050818790.8042.98.camel@timetop>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox