Re: 7.4 vs 7.3 ( hash join issue ) - Mailing list pgsql-performance

From Dennis Bjorklund
Subject Re: 7.4 vs 7.3 ( hash join issue )
Date
Msg-id Pine.LNX.4.44.0409221128210.9559-100000@zigo.dhs.org
Whole thread Raw
In response to Re: 7.4 vs 7.3 ( hash join issue )  (Gaetano Mendola <mendola@bigfoot.com>)
Responses Re: 7.4 vs 7.3 ( hash join issue )
List 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


pgsql-performance by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: 7.4 vs 7.3 ( hash join issue )
Next
From: Gaetano Mendola
Date:
Subject: Re: 7.4 vs 7.3 ( hash join issue )