From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Ravi Kiran <ravi(dot)kolanpaka(at)gmail(dot)com> |
Cc: | Marcos Almeida Azevedo <marcos(dot)al(dot)azevedo(at)gmail(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Implementing a join algorithm in Postgres |
Date: | 2015-03-30 22:32:35 |
Message-ID: | 20150330223235.GA18414@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Mon, Mar 30, 2015 at 01:33:57PM +0530, Ravi Kiran wrote:
> Hi,
>
> I am actually implementing a Power of two choices Algorithm(A join Algorithm
> used to join three tables based upon the Triangular query).
>
> So for that I have written a C program which takes input from 3 files(1 file
> for each table) and will join the three tables. The algorithm is working fine
> outside(I mean outside postgres).
>
> Now I want the same algorithm(The C program which I have written) to behave as
> a function in Postgres, I want this algorithm to be called when three
> particular tables have been joined in the database. I want to know where should
> I include this algorithm, whether in optimizer or executor, and if possible
> could you be specific, like in which particular program of optimizer or
> executor. and finally I want to find the time taken by this algorithm and
> compare it with Nested loop algorithm.
Wow, that is so complex, I am not even sure where to tell you to start.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Davies | 2015-03-30 23:59:20 | Re: Link Office Word form document with data from PostgreSQL |
Previous Message | Ken Tanzer | 2015-03-30 22:18:18 | Re: Re: [GENERAL] Link Office Word form document with data from PostgreSQL |