plpgsql-function returning a table?

From: Konstantinos Agouros <elwood(at)agouros(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: plpgsql-function returning a table?
Date: 2001-01-29 16:57:18
Message-ID: 20010129175718.A13614@rumba.agouros.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have a query that is a little bit complicated and that should contain
one parameter. I need this stuff more often, so I thought to create a function
where I do something like select complexquery(2000); and as result I get the
table I want. Is this possible, or can I create parametrized views?

Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood(at)agouros(dot)de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-29 17:17:18 Re: Re: perl use of cursors and fetch forward
Previous Message John Frank 2001-01-29 16:54:59 Re: perl use of cursors and fetch forward