Re: [PGSQL v8.2.5] Similar queries behave differently

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Reg Me Please" <regmeplease(at)gmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: [PGSQL v8.2.5] Similar queries behave differently
Date: 2007-10-25 10:33:56
Message-ID: 87tzoflbzf.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


"Reg Me Please" <regmeplease(at)gmail(dot)com> writes:

> -> Seq Scan on tt_elem (cost=0.00..29.40 rows=1940 width=8)
> (actual time=0.012..0.013 rows=1 loops=1)

The discrepancy etween the estimated rows and actual rows makes me think
you've not analyzed this table in a long time. It's probably best to analyze
the whole database to have a consistent set of statistics and to catch any
other old table stats.

There could be other misestimations based due to Postgres limitations but
first fix the out of date stats and re-post both plans.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message João Paulo Zavanela 2007-10-25 10:51:39 Re: Install plJava
Previous Message Gregory Stark 2007-10-25 10:30:11 Re: select count() out of memory