Re: Can we return a table from a function? - Mailing list pgsql-general

From Gaetano Mendola
Subject Re: Can we return a table from a function?
Date
Msg-id ch83sr$9p5$1@floppy.pyrenet.fr
Whole thread Raw
Responses Re: Can we return a table from a function?
List pgsql-general
Arundhati wrote:

> Hi
>
> I want the result of select query to be returned from a function. Or
> is there any way to return a table from a function?

What you are looking for is a table function:

http://www.postgresql.org/docs/7.3/interactive/xfunc-tablefunctions.html
http://www.postgresql.org/docs/7.4/interactive/plpgsql-control-structures.html#PLPGSQL-STATEMENTS-RETURNING


I'm not finding the equivalent for 7.4 about the first link.


Regards
Gaetano Mendola



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Debugging
Next
From: Ennio-Sr
Date:
Subject: Re: Display of text fields