首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Etherpad - PostgreSQL错误:语言"plpgsql“不存在

Etherpad - PostgreSQL错误:语言"plpgsql“不存在
EN

Stack Overflow用户
提问于 2013-10-15 16:15:34
回答 1查看 3.3K关注 0票数 2

我安装了Etherpad lite,并尝试将其用于PostgreSQL数据库,但得到以下错误:

代码语言:javascript
复制
events.js:72
        throw er; // Unhandled 'error' event
              ^
error: language "plpgsql" does not exist
    at Connection.parseE (/opt/openerp/etherpad/etherpad-lite/src/node_modules/$
    at Connection.parseMessage (/opt/openerp/etherpad/etherpad-lite/src/node_mo$
    at Socket.<anonymous> (/opt/openerp/etherpad/etherpad-lite/src/node_modules$
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:746:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)
RESTART!

在其他服务器上,我在Etherpad上使用PostgreSQL时没有遇到这样的问题。我使用以下命令创建了数据库:

代码语言:javascript
复制
crate database etherpad WITH TEMPLATE template0;

我在etherpad中的配置如下所示:

代码语言:javascript
复制
"dbType" : "postgres",
   "dbSettings" : {
                    "user"    : "db_user",
                    "host"    : "localhost",
                    "password": "my_password",
                    "database": "etherpad"
                  },

除了我注释了脏的数据库设置之外,其他的都保持不变。另外,使用脏数据库时,它可以正常工作。

EN

回答 1

Stack Overflow用户

发布于 2013-11-28 09:47:19

如果您使用的是9.1及更低版本,则应该在template1中使用CREATE LANGUAGE plpgsql,然后基于该模板创建数据库。在PostgreSQL 9.2和更高版本上不应该出现这种情况,也不需要这样做。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19376272

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档