Re: index scan backward plan question

From: Neil Conway <neilc(at)samurai(dot)com>
To: Kevin Murphy <murphy(at)genome(dot)chop(dot)edu>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: index scan backward plan question
Date: 2006-03-21 22:47:58
Message-ID: 1142981278.10422.33.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2006-03-21 at 16:58 -0500, Kevin Murphy wrote:
> I have a table for which PG 8.3 is guessing wrong about a plan when the
> result set gets large.

There is no such thing as "PG 8.3".

> -> Index Scan Backward using merged_weight_date_idx on merged
> (cost=0.00..31295593.98 rows=141839 width=229) (actual
> time=3.888..10380.783 rows=500 loops=1)

The mis-estimation of the result set of the index scan is clearly a
problem -- have you run ANALYZE recently? Try re-running ANALYZE and
retrying EXPLAIN ANALYZE.

Otherwise, please provide the queries that trigger the problem and the
relevant schema definitions.

-Neil

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-03-21 22:55:09 Re: [GENERAL] A real currency type
Previous Message Martijn van Oosterhout 2006-03-21 22:44:22 Re: [GENERAL] A real currency type