执行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