X-Original-To: pgsql-sql@postgresql.org Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id 8CA68476346 for ; Wed, 5 Mar 2003 08:11:40 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Wed Mar 05 14:11:43 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id OAA19534; Wed, 5 Mar 2003 14:11:42 +0100 (MET) Message-ID: <3E65F78E.7455651B@rodos.fzk.de> Date: Wed, 05 Mar 2003 14:11:42 +0100 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Cc: fernando@icreativa.com.mx, gsstark@mit.edu Subject: Re: SETOF Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/149 X-Sequence-Number: 12189 > > > Christoph Haller writes: > > > You cannot obtain several columns from SQL functions. > > See the list archives (search for SETOF) for details. > > You have to use e.g. a plpgsql function instead. > > How do you do it with a plpgsql function? > > Sorry, Fernando, I was wrong. It works from version 7.3. The reason why it's not working on your machine is probably because of a prior version. And Greg, refer to http://techdocs.postgresql.org/guides/SetReturningFunctions I think it will fit your needs. Regards, Christoph