pg_restore: [归档 (db)] could not execute query: 错误: 语言 "plpgsql" 已经存在

原因

createdb默认使用template1模板,而template1模板在我们所使用的PGSQL中已安装了plpgsql语言。

 

解决办法

创建数据库时指定使用模版template0 

createdb -T template0  数据库名

你可能感兴趣的:(pg_restore: [归档 (db)] could not execute query: 错误: 语言 "plpgsql" 已经存在)