X-Original-To: pgsql-sql@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 5E340924E71 for ; Fri, 23 May 2003 08:19:10 -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 44702-04 for ; Fri, 23 May 2003 08:18:39 -0400 (EDT) Received: from matrix.gatewaynet.com (unknown [217.19.69.50]) by developer.postgresql.org (Postfix) with ESMTP id 4CD5F925001 for ; Fri, 23 May 2003 06:38:22 -0400 (EDT) Received: from matrix.gatewaynet.com (localhost [127.0.0.1]) by matrix.gatewaynet.com (8.12.5/8.12.5) with ESMTP id h4NFhAEP030711; Fri, 23 May 2003 13:43:10 -0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.5/8.12.5/Submit) with ESMTP id h4NFh9NJ030707; Fri, 23 May 2003 13:43:09 -0200 Date: Fri, 23 May 2003 13:43:09 -0200 (GMT+2) From: Achilleus Mantzios To: Bruce Young Cc: pgsql-sql@postgresql.org Subject: Re: language "plpgsql" does not exist In-Reply-To: <20030523064831.64448.qmail@web10403.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/459 X-Sequence-Number: 13624 On Thu, 22 May 2003, Bruce Young wrote: > 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 Do CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler AS '/usr/local/pgsql/lib/plpgsql.so', 'plpgsql_call_handler' LANGUAGE c; CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler; > > > 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 > -- ================================================================== Achilleus Mantzios S/W Engineer IT dept Dynacom Tankers Mngmt Nikis 4, Glyfada Athens 16610 Greece tel: +30-210-8981112 fax: +30-210-8981877 email: achill@matrix.gatewaynet.com mantzios@softlab.ece.ntua.gr