Re: 7.4 vs 7.3 ( hash join issue )

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 7.4 vs 7.3 ( hash join issue )
Date: 2004-09-22 09:32:19
Message-ID: Pine.LNX.4.44.0409221128210.9559-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches pgsql-performance

On Wed, 22 Sep 2004, Gaetano Mendola wrote:

> Limit (cost=10.21..10.21 rows=1 width=24) (actual time=0.885..0.885 rows=0 loops=1)
> Limit (cost=10.28..10.28 rows=1 width=24) (actual time=0.429..0.429 rows=0 loops=1)

These estimated costs are almost the same, but the runtime differs a bit.
This means that maybe you need to alter settings like random_page_cost,
effective_cache and maybe some others to make the cost reflect the runtime
better.

Since the costs are so close to each other very small changes can make it
choose the other plan. It's also very hard to make an estimate that is
correct in all situations. That's why it's called an estimate after all.

--
/Dennis Björklund

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Gaetano Mendola 2004-09-22 10:28:04 Re: 7.4 vs 7.3 ( hash join issue )
Previous Message Neil Conway 2004-09-22 08:48:12 WIP: CREATE TABLE AS / WITH DATA

Browse pgsql-performance by date

  From Date Subject
Next Message Gaetano Mendola 2004-09-22 10:28:04 Re: 7.4 vs 7.3 ( hash join issue )
Previous Message Gaetano Mendola 2004-09-22 08:22:05 Re: 7.4 vs 7.3 ( hash join issue )