Skip site navigation (1) Skip section navigation (2)

Re: Returning data from function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: "Sharon Cowling" <sharon(dot)cowling(at)sslnz(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Returning data from function
Date: 2001-11-01 04:19:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
"Josh Berkus" <josh(at)agliodbs(dot)com> writes:
>> I need to recieve parameters and return a resultset.

> This functionality does not currently work in PostgreSQL.

It's not so much that "it doesn't work" as that "plpgsql doesn't support
it".  Returning rowsets does work for SQL-language functions; not that
that's much help if you need a procedural language to do the
computations.  It's also possible to do it in C-coded functions
(a fortiori, since after all the whole system is in C).  But again that
might not be your preferred development medium.

FWIW, I've recently updated the description of SQL functions to clarify
(I hope) what works and does not work in this area.  See the devel docs
The docs are devel, but the features described have all been there since
Berkeley days...

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Tom LaneDate: 2001-11-01 04:37:17
Subject: Re: Update function
Previous:From: Sharon CowlingDate: 2001-11-01 02:39:04
Subject: Update function

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group