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

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: <pgsql-general(at)postgresql(dot)org>, "Dan B" <db(at)cyclonehq(dot)dnsalias(dot)net>
Subject: Re: Trigger using function written in PL/PGSQL returns "Unrecognized language specified"
Date: 2001-02-10 15:33:32
Message-ID: 005001c09377$692caa20$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: "Dan B" <db(at)cyclonehq(dot)dnsalias(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Jerusalem 2001-02-10 15:36:17 7.1 installation problem
Previous Message James Patterson 2001-02-10 13:22:25 Howto install postgresql 7.03 on Darwin 1.2