Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0A8RnB46947 for ; Thu, 10 Jan 2002 03:27:49 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id g0A8Lcm84045 for pgsql-sql@postgresql.org; Thu, 10 Jan 2002 03:21:38 -0500 (EST) (envelope-from news) From: "Kevin Zapico" X-Newsgroups: comp.databases.postgresql.sql Subject: Result sets from functions Date: Thu, 10 Jan 2002 08:23:01 -0000 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 14 Message-ID: X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-sql@postgresql.org X-Archive-Number: 200201/132 X-Sequence-Number: 6220 I am new to postgres and am trying to get a function to return a result set with multiple columns. The only way I have seen to do this so far is select column1(proc()), column2(proc()) This looks like it should call the proc() function twice, although I am sure that it does not. However, I am trying to find out if there is another way of doing this. Please help.