Re: How to manually load RETURNS SETOF RECORD?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Moore <michaeljmoore(at)gmail(dot)com>
Cc: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How to manually load RETURNS SETOF RECORD?
Date: 2015-12-08 19:49:09
Message-ID: 18654.1449604149@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Michael Moore <michaeljmoore(at)gmail(dot)com> writes:
> *What is the correct way to accomplish this?*

Something like RETURN NEXT ROW('foo', 200, ...);
Or you could assign the ROW construct to a variable of RECORD type.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Adrian Klaver 2015-12-08 20:14:22 Re: How to manually load RETURNS SETOF RECORD?
Previous Message Michael Moore 2015-12-08 19:34:09 How to manually load RETURNS SETOF RECORD?