Can a function return a record set?

From: "John Taves" <jtaves(at)pickatime(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Can a function return a record set?
Date: 2001-02-18 07:39:07
Message-ID: 3a8f7b37_1@news.nwlink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Am I correct in concluding that I can't return a record set from a function?

For example, in MS SQL I would do:

create procedure foo as
select * from yada

I expected to be able to do the following in postgresql.

create function foo (integer) returns (integer) as '
begin
select * from yada;
end; '
language 'plpgsql';

I am concluding that I can't.

jt

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Alexaki Sofia 2001-02-18 12:52:50 speed up creation of a table
Previous Message Katsuyuki Tanaka 2001-02-18 04:27:47 IPC Shared Memory