Re: Return unknown resultset from a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Jan Meyland Andersen <jma(at)agile(dot)dk>, pgsql-general(at)postgresql(dot)org
Subject: Re: Return unknown resultset from a function
Date: 2012-03-05 16:08:26
Message-ID: 12092.1330963706@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> The only exception to this rule is cursors. Reading from cursors via
> FETCH allows you to pull data from a refcursor that was set up in a
> previous function call and works pretty well, but comes with the giant
> downside that the results can be directed only to the client.

Hmm, couldn't you do a FETCH into a record variable in plpgsql? Not
that you'd not have problems manipulating the record variable, since
plpgsql is pretty strongly typed itself.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike C 2012-03-05 17:03:03 Re: Memory usage and configuration settings
Previous Message Tom Lane 2012-03-05 16:04:58 Re: Memory usage and configuration settings