ERROR:language "plpgsql" does not exist

来源:互联网 发布:直通网络测试仪怎么用 编辑:程序博客网 时间:2024/05/17 17:43

执行postgres数据库存储过程时报以下错误:

ERROR:language "plpgsql" does not exist

HINT:Use CREATE LANGUAGE to load the language into the database.


这是因为没有安装在数据库的语言。

需要使用createlang函数 在安装数据库的bin目录创建langage 作为数据基础。


切换到数据库用户

[postgres@lxftest bin]$ createlang -d dbname plpgsql

之后成功执行存储过程sql 

0 0