Re: language "plpgsql" does not exist
От | Achilleus Mantzios |
---|---|
Тема | Re: language "plpgsql" does not exist |
Дата | |
Msg-id | Pine.LNX.4.44.0305231333350.30269-100000@matrix.gatewaynet.com обсуждение исходный текст |
Ответ на | language "plpgsql" does not exist (Bruce Young <hbrucey@yahoo.com>) |
Список | pgsql-sql |
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
В списке pgsql-sql по дате отправления: