Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 746A2475888 for ; Fri, 24 May 2002 06:46:21 -0400 (EDT) Received: from hotmail.com (f32.law11.hotmail.com [64.4.17.32]) by postgresql.org (Postfix) with ESMTP id 8C050475852 for ; Fri, 24 May 2002 06:46:19 -0400 (EDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 24 May 2002 03:46:22 -0700 Received: from 203.200.123.47 by lw11fd.law11.hotmail.msn.com with HTTP; Fri, 24 May 2002 10:46:21 GMT X-Originating-IP: [203.200.123.47] From: "SANDEEP CHIBBER" To: pgsql-ports@postgresql.org Date: Fri, 24 May 2002 10:46:21 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 May 2002 10:46:22.0189 (UTC) FILETIME=[3E7329D0:01C20310] X-Archive-Number: 200205/11 X-Sequence-Number: 1239 Your name : Sandeep Chibber Your email address : sandeep@vreach.net System Configuration --------------------- Architecture (example: Intel Pentium) : Intel Pentium Operating System (example: Linux 2.0.26 ELF) : Windows 2000 Professional PostgreSQL version (example: PostgreSQL-7.2.1): PostgreSQL-7.2.1 Compiler used (example: gcc 2.95.2) : Please enter a FULL description of your problem: ------------------------------------------------ We have create a function which will retreive all columns along with the multiple rows of data. Only one Column is displayed and it has an id not the data. If there are more than one rows then same id will be repeated as many times.Even if there is one row only a single id column is displayed Please describe a way to repeat the problem. Please try to provide a concise reproducible example, if at all possible: ---------------------------------------------------------------------- Table structure create table nodes (name varchar(50),parent varchar (50)) CREATE FUNCTION listchildren2(text) RETURNS SETOF nodes AS 'SELECT name ,parent FROM nodes WHERE parent > $1;' LANGUAGE 'SQL'; select listchildren2('0') If you know how this problem might be fixed, list the solution below: --------------------------------------------------------------------- Sorry no ideas Thanks Sandeep Chibber _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com