Re: Trigger using function written in PL/PGSQL returns "Unrecognized language specified"

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Trigger using function written in PL/PGSQL returns "Unrecognized language specified"
Дата
Msg-id 005001c09377$692caa20$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на Trigger using function written in PL/PGSQL returns "Unrecognized language specified"  (Dan B <db@cyclonehq.dnsalias.net>)
Список pgsql-general
From: "Dan B" <db@cyclonehq.dnsalias.net>

> I am writing my first trigger & function.

I'm about a week ahead of you, so if we were using MS products I'd be a
qualified trainer by now.

> First question:
> ---------------
> I can't get psql to take the function declaration.
>
> ds=# > CREATE FUNCTION trigger_insert_update_copay()
...
> ds-# LANGUAGE 'plpgsql'
> ds-# Error: ERROR:  Unrecognized language specified in a CREATE FUNCTION:
> 'plpgsql'.  Recognized languages are sql, C, internal and the created
> procedural languages.

You need to run "createlang plpgsql dbname" on the database first - man
createlang


> Here is my function:

Everything looks fine to the naked eye - one createlang and you're in
business I'd say.

- Richard Huxton


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

Предыдущее
От: Alexander Jerusalem
Дата:
Сообщение: 7.1 installation problem
Следующее
От: "Richard Huxton"
Дата:
Сообщение: Re: RE: can't run pg_dump in sh script using crontab