Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7EEeZP34596 for ; Tue, 14 Aug 2001 10:40:35 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f7EEeFY17510; Tue, 14 Aug 2001 10:40:15 -0400 (EDT) To: Gary Stainburn cc: pgsql-sql@postgresql.org Subject: Re: create function using language SQL In-reply-to: <01081413400502.01217@gary.ringways.co.uk> References: <01081413400502.01217@gary.ringways.co.uk> Comments: In-reply-to Gary Stainburn message dated "Tue, 14 Aug 2001 13:40:05 +0100" Date: Tue, 14 Aug 2001 10:40:14 -0400 Message-ID: <17507.997800014@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200108/187 X-Sequence-Number: 4412 Gary Stainburn writes: > ... However, I cannot find the > syntax to create a function in SQL. Specifically, how you return the result. See http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/xfunc.html#XFUNC-SQL regards, tom lane