Re: language "plpgsql" does not exist

Поиск
Список
Период
Сортировка
Искать
От
A.Bhuvaneswaran
Тема
Re: language "plpgsql" does not exist
Дата
в 09:37:47
Msg-id
Pine.LNX.4.44.0305231756160.2714-100000@Bhuvan.bksys.co.in
Ответ на
Список
Дерево обсуждения
Re: language "plpgsql" does not exist "David Witham" <davidw@unidial.com.au>
> 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
Дата:
От: Jan Wieck
Дата:
Сообщение: Re: see toast table
FAQ