Using a Storedprocedure as a View

From: "Alexander Hachmann" <public(at)thesofa(dot)de>
To: "Pgsql" <pgsql-general(at)postgresql(dot)org>
Subject: Using a Storedprocedure as a View
Date: 2004-03-09 17:14:26
Message-ID: NGEEJJBKDBJKFGILNCLPGEKJCDAA.public@thesofa.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,
I know that this was discussed many times, but all the answers did not help
me yet.
I need to create a Procedure that returns the same data as a view does
except, that the the
data was filtered by a parameter.
I want to execute a procedure with a parameter and get back a 'view'.
I only made prcedures giving back simple values. Can they give back data as
Views does.
I dont want the procedure to create a view on which i have to query again
because the query the Procedure does
can go over more stages than just this one. The procedure calls another
procedure and handles this as a subselect.
Can any one help me?
Thx,
Alexander

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Bartlett 2004-03-09 17:26:40 Re: Using a Storedprocedure as a View
Previous Message Steve Wolfe 2004-03-09 17:14:12 Re: Question on Opteron performance