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 4987BD1D2AC for ; Tue, 23 Mar 2004 08:09:05 +0000 (GMT) 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 07412-06 for ; Tue, 23 Mar 2004 04:09:05 -0400 (AST) Received: from anchor-post-37.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by svr1.postgresql.org (Postfix) with ESMTP id E7620D1D2A4 for ; Tue, 23 Mar 2004 04:09:02 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1B5gy5-0002Oe-0b; Tue, 23 Mar 2004 08:09:01 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id 2B5F717C18; Tue, 23 Mar 2004 08:09:00 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id DFFF1173E8; Tue, 23 Mar 2004 08:08:57 +0000 (GMT) From: Richard Huxton To: "Gregory S. Williamson" , Subject: Re: function definition documentation Date: Tue, 23 Mar 2004 08:08:56 +0000 User-Agent: KMail/1.5 References: <71E37EF6B7DCC1499CEA0316A2568328DC9B6B@loki.wc.globexplorer.net> In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328DC9B6B@loki.wc.globexplorer.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403230808.57253.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/231 X-Sequence-Number: 17330 On Tuesday 23 March 2004 02:16, Gregory S. Williamson wrote: > I am having an impossible time porting some simple Stored Procedures from > Informix to postgres. The documentation is almost self defeating. > > Are there any better descriptions of how to define functions that return > several tuples to a wide variety of calling programs (e.g. I can't count on > my users running the psql command line tool, but rather coldfusion, jsp > etc.) ? You might want to look at the "Set Returning Functions" at the techdocs site: http://techdocs.postgresql.org Most of your problems are down to quoting issues and misleading error statements. -- Richard Huxton Archonet Ltd