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 2D0B1D1E9CD for ; Wed, 24 Mar 2004 00:04:16 +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 94303-04 for ; Tue, 23 Mar 2004 20:04:13 -0400 (AST) Received: from loki.globexplorer.com (unknown [208.35.14.101]) by svr1.postgresql.org (Postfix) with ESMTP id BDCC9D1D222 for ; Tue, 23 Mar 2004 20:04:09 -0400 (AST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: function definition documentation Date: Tue, 23 Mar 2004 16:04:16 -0800 Message-ID: <71E37EF6B7DCC1499CEA0316A2568328DC9B6C@loki.wc.globexplorer.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] function definition documentation Thread-Index: AcQQrh1bRbvxvW5STwurRN/neUkEuwAh71LQ From: "Gregory S. Williamson" To: "Richard Huxton" , X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/243 X-Sequence-Number: 17342 Thanks muchly for the excellent tip. Lots of useful references there. I seem to have battled through this thicket -- onwards ! Greg -----Original Message----- From: Richard Huxton [mailto:dev@archonet.com] Sent: Tuesday, March 23, 2004 12:09 AM To: Gregory S. Williamson; pgsql-sql@postgresql.org Subject: Re: [SQL] function definition documentation 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 sit= e: http://techdocs.postgresql.org Most of your problems are down to quoting issues and misleading error=20 statements. --=20 Richard Huxton Archonet Ltd