Re: Function to return recordset

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Qiqi Dong" <qdong(at)swbell(dot)net>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Function to return recordset
Date: 2001-02-26 15:39:22
Message-ID: 003701c0a00a$4dca6200$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

From: "Qiqi Dong" <qdong(at)swbell(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ken Kline 2001-02-26 16:46:49 Re: conversion
Previous Message Qiqi Dong 2001-02-26 15:19:01 Function to return recordset