Re: language "plpgsql" does not exist

Поиск
Список
Период
Сортировка
От A.Bhuvaneswaran
Тема Re: language "plpgsql" does not exist
Дата
Msg-id Pine.LNX.4.44.0305231756160.2714-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на language "plpgsql" does not exist  (Bruce Young <hbrucey@yahoo.com>)
Список pgsql-sql
> 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

The problem is, you have not installed the language 'plpgsql'. It can be 
done using createlang command. 

regards,
bhuvaneswaran



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Victor Yegorov"
Дата:
Сообщение: Re: language "plpgsql" does not exist
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: see toast table