Re: help with getting index scan

From: "Thomas T(dot) Thai" <tom(at)minnesota(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: help with getting index scan
Date: 2002-02-25 16:15:34
Message-ID: Pine.NEB.4.43.0202251009010.26912-100000@ns01.minnesota.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 25 Feb 2002, Tom Lane wrote:

> "Thomas T. Thai" <tom(at)minnesota(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-02-25 16:19:36 Re: Casting varchar to timestamp fails in plpgsql
Previous Message Tom Lane 2002-02-25 16:04:17 Re: help with getting index scan