Re: hacking postgres hashjoin algorithm

From: HS <j8shen(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: hacking postgres hashjoin algorithm
Date: 2006-10-21 02:20:32
Message-ID: ehc058$1gr6$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

from my understanding, postgres first needs to partition the tables.
ExecHashTableCreate() is the function that partitions the tables right?

Martijn van Oosterhout wrote:
> On Sun, Oct 15, 2006 at 11:08:18PM -0400, HS wrote:
>> Hello there
>>
>> I am trying to play around with the hashjoin algorithm in postgres.
>>
>> I am using the statement like
>> Select count(*) from r,s where r.id=s.id;
>>
>> I looked at the function ExecHashJoin() in nodeHashjoin.c and cannot
>> find where the algorithm is comparing if r.id equals s.id
>
> The code doing the work is actually ExecScanHashBucket() which is in
> nodeHash.c. The actual check is done by the ExecQual there...
>
> Hope this helps,

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2006-10-21 04:01:46 Re: adminpack and pg_catalog
Previous Message Neil Conway 2006-10-21 01:10:52 Re: Want to use my own query-plan