pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Taves <jtaves@pickatime.com>
To: pgsql-sql@postgresql.org
Subject: Can a function return a record set?
Date: Sat, 17 Feb 2001 23:39:07 -0800
Message-ID: <3a8f7b37_1@news.nwlink.com> (raw)

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






view thread (3+ messages)  latest in thread

Message-ID: <3a8f7b37_1@news.nwlink.com>
Permalink:  ../3a8f7b37_1@news.nwlink.com/
Also on:    postgresql.org/message-id/3a8f7b37_1@news.nwlink.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jtaves@pickatime.com
  Subject: Re: Can a function return a record set?
  In-Reply-To: <3a8f7b37_1@news.nwlink.com>
  References: <3a8f7b37_1@news.nwlink.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox