X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C41F5D1B17C for ; Sun, 30 May 2004 19:21:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 38848-06 for ; Sun, 30 May 2004 19:21:50 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 0279AD1B17B for ; Sun, 30 May 2004 19:21:47 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i4UMLkSx064881 for ; Sun, 30 May 2004 22:21:46 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i4UMBc0J063705 for pgsql-sql@postgresql.org; Sun, 30 May 2004 22:11:38 GMT From: CoL X-Newsgroups: comp.databases.postgresql.sql Subject: Re: multi results with functions Date: Mon, 31 May 2004 00:13:08 +0200 Organization: Hub.Org Networking Services Lines: 17 Message-ID: References: Reply-To: col@mportal.hu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a1) Gecko/20040520 X-Accept-Language: en-us, en In-Reply-To: To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/230 X-Sequence-Number: 17944 hi, kasper wrote, On 5/31/2004 00:02: > Hi > > Im trying to make a stored procedure that returns * from at table, and > returns multible rows. Can you do that, and how? > > basically I would like to do: > > create or replace function test () returns record as ' > select * from dummytable; > ' language sql; returns SETOF dummytable as ' .... C.