On Mon, 25 Feb 2002, Tom Lane wrote:
> "Thomas T. Thai" <tom(at)minnesota(dot)com> writes:
> > On Mon, 25 Feb 2002, Tom Lane wrote:
> >> How many distinct cid values do you have? Also, which PG version is
> >> this?
>
> > 5139
>
> Hmm, seems like that ought to be selective enough. What does pg_stats
> show for phone_cat_address? (And phone_cat, for that matter.)
sorry tom, i'm still new to PostgreSQL. what is pg_stats and how do i use
it in the way you've asked?
> If you set enable_seqscan to off, do you get a plan you like better?
> If so, what is it?
with seqscan off, the query still takes about the same about of time
(around 8 secs). i'd like to get it down to 1 if possible.