Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g18004E61677 for ; Thu, 7 Feb 2002 19:00:06 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id g17NlKm33484 for pgsql-sql@postgresql.org; Thu, 7 Feb 2002 18:47:20 -0500 (EST) (envelope-from news) From: Mark Nielsen X-Newsgroups: comp.databases.postgresql.sql Subject: How do you return more than one variable in a plpgsql function? Date: Thu, 07 Feb 2002 15:43:40 -0500 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 10 Message-ID: <3C62E6FC.1040208@kepnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: news@hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us To: pgsql-sql@postgresql.org X-Archive-Number: 200202/89 X-Sequence-Number: 6517 I have never figured out how to make a plpgsql function return more than one variable or type. I read something where a function an return an open cursor, but I never figured out how. I want a function to be able to return an entire row of a table or a number of fields from different tables using plpgsql. How can I do that? Thanks! Mark