Re: 7.4 vs 7.3 ( hash join issue )

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: 7.4 vs 7.3 ( hash join issue )
Date: 2004-09-22 13:43:24
Message-ID: 87y8j2ctc3.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches pgsql-performance


Gaetano Mendola <mendola(at)bigfoot(dot)com> writes:

> hash_join = on
> -> Seq Scan on lookup_tipo_evento le (cost=0.00..1.16 rows=16 width=32) (actual time=0.017..0.038 rows=16 loops=1)
>
> hash_join = off
> -> Seq Scan on lookup_tipo_evento le (cost=0.00..1.16 rows=16 width=32) (never executed)

Actually this looks like it's arguably a bug to me. Why does the hash join
execute the sequential scan at all? Shouldn't it also like the merge join
recognize that the other hashed relation is empty and skip the sequential scan
entirely?

--
greg

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Dennis Bjorklund 2004-09-22 15:22:42 Re: 7.4 vs 7.3 ( hash join issue )
Previous Message Alvaro Herrera 2004-09-22 13:00:00 Re: WIP: CREATE TABLE AS / WITH DATA

Browse pgsql-performance by date

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