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 D09BCD1B1FD for ; Sun, 30 May 2004 18: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 23957-02 for ; Sun, 30 May 2004 18:21:49 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A3A42D1B199 for ; Sun, 30 May 2004 18:21:46 -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 i4ULLkSx057220 for ; Sun, 30 May 2004 21: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 i4UL2p3m049150 for pgsql-sql@postgresql.org; Sun, 30 May 2004 21:02:51 GMT From: "kasper" X-Newsgroups: comp.databases.postgresql.sql Subject: multi results with functions Date: Sun, 30 May 2004 23:02:06 +0100 Organization: Cybercity Lines: 15 Message-ID: X-Complaints-To: abuse@cybercity.dk X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.2 tagged_above=0.0 required=5.0 tests=DNS_FROM_RFCI_DSN, PRIORITY_NO_NAME X-Spam-Level: ** X-Archive-Number: 200405/225 X-Sequence-Number: 17939 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; Thanks - Kasper