Re: Question about a query plan

From: Bill Moseley <moseley(at)hank(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about a query plan
Date: 2005-09-16 17:11:18
Message-ID: 20050916171118.GB17486@hank.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 16, 2005 at 04:45:57PM +0200, Peter Eisentraut wrote:
> The planner thinks your query will return 414 rows, so it thinks the
> sequential scan is faster. In reality, your query only retuns 28 rows, so
> you need to create better statistics, either by running ANALYZE or VACUUM (or
> both) or tweaking the statistics parameters of the columns.

I did wonder about the planner stats, so I had run ANALYZE on the
database with no change. I just now ran VACUUM (and VACUUM ANALYZE),
and again see no change. Perhaps my table is just too small for this
test.

--
Bill Moseley
moseley(at)hank(dot)org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moseley 2005-09-16 17:18:19 Re: Question about a query plan
Previous Message Scott Ribe 2005-09-16 17:09:57 Re: Replication