Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostgreSQL - Language pgplsql does not exist despite running CREATE LANGUAGE

I just tried to create my first plpgsql function. When executing the script, I get

ERROR: language "‘plpgsql’" does not exist

I then run the command CREATE LANGUAGE plpgsql; which shows the following error:

ERROR: language "plpgsql" already exists

Commands are being run on the same database.

Regards

Peter

like image 743
Peter Avatar asked Jan 23 '10 05:01

Peter


1 Answers

use this command:

$: createlang -d dbname plpgsql
like image 183
ls270400 Avatar answered Sep 19 '22 20:09

ls270400