Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 26E0847603C; Tue, 24 Sep 2002 03:45:12 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 616B347603A; Tue, 24 Sep 2002 03:45:11 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id A671D381641; Tue, 24 Sep 2002 03:45:10 -0400 (EDT) From: "Jeroen Olthof" X-Newsgroups: comp.databases.postgresql.questions, comp.databases.postgresql.sql Subject: database abstraction -> functions Date: Tue, 24 Sep 2002 09:45:14 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 15 Message-ID: X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-general@postgresql.org, pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/362 X-Sequence-Number: 9639 Hi, When developing applications is a good thing to create abstraction between different layers The one concerning the database would be the persistence layer. To create such abstraction I want all mij datababase activitie runned through functions. But how can I return a set of rows instead of a single datatype (I looked into the setof but never found a clear simple)? kind regards Jeroen Olthof