Re: help with getting index scan - Mailing list pgsql-general

From Thomas T. Thai
Subject Re: help with getting index scan
Date
Msg-id Pine.NEB.4.43.0202251009010.26912-100000@ns01.minnesota.com
Whole thread Raw
In response to Re: help with getting index scan  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: help with getting index scan  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Mon, 25 Feb 2002, Tom Lane wrote:

> "Thomas T. Thai" <tom@minnesota.com> writes:
> > i can't seem to get index scan to work on table phone_cat_address.
>
> The planner seems to think that the cid column alone isn't very
> selective, and thus indexscanning on it wouldn't be useful.
> How many distinct cid values do you have?  Also, which PG version is
> this?

yellowpages=# select count(distinct(cid)) from phone_cat_address;
 count
-------
  5139
(1 row)

this is 7.2. i'm just trying to find ways to narrow the search time down.
it's currently taking several seconds.


pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: help with getting index scan
Next
From: "Thomas T. Thai"
Date:
Subject: Re: help with getting index scan