Re: plpgsql: returning multiple named columns from function

From: John Lawler <postgresql(dot)org(at)tgice(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql: returning multiple named columns from function
Date: 2005-08-23 19:40:48
Message-ID: 430B7BC0.6080307@tgice.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joshua D. Drake wrote:
>> perhaps even any existing column in a table.
>
> I think what you are looking for is SetOF functions.
> http://www.postgresql.org/docs/8.0/interactive/functions-srf.html

Thanks for the response.

The reference you indicated is talking about Set Returning Functions.
I'm looking to return multiple *columns* from a function, not rows.

Plus, the main part was to be able to have the columns (arbitrarily)
named as if they'd been selected from a table. I hope that there's
something about as easy as the example I cited from MS SQL.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2005-08-23 19:55:18 Re: ctid access is slow
Previous Message Joshua D. Drake 2005-08-23 19:36:54 Re: plpgsql: returning multiple named columns from function