X-Original-To: pgsql-sql@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 2E1FD925DF1 for ; Fri, 23 May 2003 07:31:04 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 27244-03 for ; Fri, 23 May 2003 07:30:32 -0400 (EDT) Received: from ozimelb03.ozicom.com (unknown [203.185.247.100]) by developer.postgresql.org (Postfix) with ESMTP id A5DC3926032 for ; Fri, 23 May 2003 05:45:50 -0400 (EDT) Content-class: urn:content-classes:message Subject: Re: language "plpgsql" does not exist Date: Fri, 23 May 2003 19:45:48 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] language "plpgsql" does not exist Thread-Index: AcMhD1dxiE6Y7DJIQCKJcEBDgo1CrQAAIWaw From: "David Witham" To: "Bruce Young" , X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/457 X-Sequence-Number: 13622 HI Bruce, See the createlang shell script in the reference manual under the Client Ap= plications section. You need to "create" a language in the target database = before you can use it to program with against that database. Regards, David Witham Telephony Platforms Architect Unidial -----Original Message----- From: Bruce Young [mailto:hbrucey@yahoo.com] Sent: Friday, 23 May 2003 16:49 To: pgsql-sql@postgresql.org Subject: [SQL] language "plpgsql" does not exist i am trying to create functions only to get the above error in return. what do i need to do to get PL/PGSQL functions working? example: CREATE FUNCTION logfunc1(text) RETURNS timestamp AS ' DECLARE logtxt ALIAS FOR $1; BEGIN INSERT INTO logtable VALUES (logtxt, ''now''); RETURN ''now''; END; ' LANGUAGE plpgsql; # ERROR: language "plpgsql" does not exist any help appreciated __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly