Re: Function to return recordset - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Function to return recordset
Date
Msg-id 003701c0a00a$4dca6200$1001a8c0@archonet.com
Whole thread Raw
In response to Using a messaging service....  (Clément Soullard <csoullard@telemarket.fr>)
List pgsql-sql
From: "Qiqi Dong" <qdong@swbell.net>

> Hi,
>
> I need help! How can I get either sql or plpgsql function to return
> recordset?
>
> Thanks,
> Qiqi

If you have a table foo you can define your function with "returns foo" but
you cannot use this like:

select foo_function('x');

At present it is only useful for use by other functions (I believe). I think
Tom said this is on the developer todo list though, so sometime after 7.1 it
should be possible.

- Richard Huxton



pgsql-sql by date:

Previous
From: Qiqi Dong
Date:
Subject: Function to return recordset
Next
From: Stephan Szabo
Date:
Subject: Re: conversion