JOIN results of refcursor functions

From: Milan Oparnica <milan(dot)opa(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: JOIN results of refcursor functions
Date: 2008-11-22 01:37:37
Message-ID: 49276261.7080003@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Is there any way to use INNER, LEFT and RIGHT JOIN between functions
returning refcursor type.

Explain:

function1 as refcursor
function2 as refcursor

both functions return columns a and b.

can i join the results of these functions in such manner (or any other):

function3 as refcursor

select f1.a, f2.b
from function1 as f1 inner join function2 as f2 on f1.a=f2.a;

open f3;
return f3;

Thanks,

Milan Oparnica.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2008-11-22 02:15:41 Re: Interval Format
Previous Message Zagato 2008-11-22 01:34:23 Interval Format