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.0202251036430.27000-100000@ns01.minnesota.com
Whole thread Raw
In response to help with getting index scan  ("Thomas T. Thai" <tom@minnesota.com>)
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:
> > 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.



pgsql-general by date:

Previous
From: "Thomas T. Thai"
Date:
Subject: Re: help with getting index scan
Next
From: Bruce Momjian
Date:
Subject: Article about Open Source Databases