Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 0134C475954 for ; Sun, 5 May 2002 18:39:33 -0400 (EDT) Received: from pugsly.m1group.com.au (unknown [203.38.113.174]) by postgresql.org (Postfix) with ESMTP id 1DC4C475864 for ; Sun, 5 May 2002 18:39:30 -0400 (EDT) Received: from scooby.m1group.com.au ([192.168.100.96]) by pugsly.m1group.com.au (8.11.2/8.11.0) with SMTP id g45MVIW01761; Mon, 6 May 2002 06:31:19 +0800 From: Aaron Spiteri Date: Sun, 05 May 2002 22:29:10 GMT Message-ID: <20020505.22291000@scooby.m1group.com.au> Subject: Re: Trigger problem To: jquest jquest , pgsql-admin@postgresql.org In-Reply-To: References: X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archive-Number: 200205/19 X-Sequence-Number: 4194 In postgres you the plsql equivalent is 'plpgsql' not 'plsql'. >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 3/05/02, 21:17:38, "jquest jquest" wrote=20 regarding [ADMIN] Trigger problem: > Hi, > I am new to postgresql and to this moment I am using oracle. > I use posgresql 7.1.2 > I try to create very simple ( from doc. examples ) trigger: > CREATE FUNCTION add_one (integer) RETURNS INTEGER AS ' > BEGIN > RETURN $1 + 1; > END; > ' LANGUAGE 'pgsql'; > But the system report: > ERROR: Unrecognized language specified in a CREATE FUNCTION: 'pgsql'. > Recognized languages are sql, C, internal, and created procedural > languages. > I readet in documentation that pgsql is good solution for SP. > Where is the problem? > Many thanks in advance. > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)