Re: help with getting index scan

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

"Thomas T. Thai" <tom(at)minnesota(dot)com> writes:
> sorry tom, i'm still new to PostgreSQL. what is pg_stats and how do i use
> it in the way you've asked?

select * from pg_stats where tablename = 'foo';

>> 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.

I wanted to know what the plan and cost estimates are. Also, it'd be
good to show EXPLAIN ANALYZE results, so that we can compare reality
to planner cost estimates ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2002-02-25 16:51:15 Re: help with getting index scan
Previous Message Thomas T. Thai 2002-02-25 16:48:02 Re: help with getting index scan