Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a6OHB-0003kC-Gq for pgsql-sql@arkaria.postgresql.org; Tue, 08 Dec 2015 19:50:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a6OHB-0004xc-1x for pgsql-sql@arkaria.postgresql.org; Tue, 08 Dec 2015 19:50:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a6OGD-0003mh-LD for pgsql-sql@postgresql.org; Tue, 08 Dec 2015 19:49:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a6OGA-0005kB-NR for pgsql-sql@postgresql.org; Tue, 08 Dec 2015 19:49:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tB8Jn9Yi018655; Tue, 8 Dec 2015 14:49:09 -0500 From: Tom Lane To: Michael Moore cc: postgres list Subject: Re: How to manually load RETURNS SETOF RECORD? In-reply-to: References: Comments: In-reply-to Michael Moore message dated "Tue, 08 Dec 2015 11:34:09 -0800" Date: Tue, 08 Dec 2015 14:49:09 -0500 Message-ID: <18654.1449604149@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Michael Moore 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 -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql