Re: Return more then one value using PL

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Benjamin Arai <barai(at)cs(dot)ucr(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Return more then one value using PL
Date: 2006-02-10 04:33:39
Message-ID: 20060210043339.GA64331@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 09, 2006 at 11:23:55AM -0800, Benjamin Arai wrote:
> What languages allow you to return more than one value using PL? For
> example, I read that PL/Python only supports returning a single value.

What do you mean by "more than one value"? Multiple columns
(composite type), multiple rows (set), or both? In any case, the
documentation for each language describes its capabilities.

http://www.postgresql.org/docs/8.1/interactive/server-programming.html

Of the standard languages in PostgreSQL 8.1 you can return sets,
composite types, and sets of composite types with C, SQL, PL/pgSQL,
and PL/Perl but not with PL/Tcl or PL/Python. Third-party languages
with support for sets and composite types include PL/Ruby, PL/php,
PL/R, PL/Java, and possibly others.

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-02-10 04:40:34 Re: Is there a way to limit CPU usage per user
Previous Message Luki Rustianto 2006-02-10 04:30:04 Re: Is there a way to limit CPU usage per user