Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 3B19F4768D3 for ; Fri, 5 Jul 2002 04:36:40 -0400 (EDT) Mailbox-Line: From teknokrat@yahoo.com Fri Jul 5 04:36:40 2002 Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id EA50547630C for ; Fri, 5 Jul 2002 04:36:17 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 7219E38128A; Fri, 5 Jul 2002 04:35:19 -0400 (EDT) From: teknokrat@yahoo.com (teknokrat) X-Newsgroups: comp.databases.postgresql.sql Subject: How do i return a dataset from a stored procedure Date: 5 Jul 2002 01:32:33 -0700 Organization: http://groups.google.com/ Lines: 8 Message-ID: <1cbae208.0207050032.4e052f07@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-sql@postgresql.org X-Spam-Status: No, hits=1.4 required=5.0 tests=FROM_NAME_NO_SPACES,FORGED_YAHOO_RCVD version=2.30 X-Spam-Level: * X-Archive-Number: 200207/65 X-Sequence-Number: 8444 I can't figure out how to return a group of rows from a function written in plpgsql (or plsql for that matter). The only way i have seen it done is with a setof table return value in sql. But since the query was a single select anyway i don't see the point of this. Is there a way of creating a temporary table in a procedure and using it as the output? thanks