创建PLR扩展Postgres时出错

时间:2018-08-13 09:23:01

标签: sql r postgresql plr

我正在尝试在Postgres 10.4中创建PLR扩展,它给了我错误:

ERROR:  could not load library "C:/Program Files/PostgreSQL/10/lib/plr.dll": The specified module could not be found.


SQL state: XX000

我使用Windows 10 R 3.4.2。我下载了以下版本的PL / R:适用于Postgres 10.x,R-3.4.2(plr-8.3.0.17)的Win64 plr.dll

我根据需要将dll文件放在lib文件夹中,然后重新启动了psql服务。 R_HOME设置为C:\ Program Files \ R \ R-3.4.2。

路径变量:C:\ Program Files \ PostgreSQL \ 10 \ lib和C:\ Program Files \ PostgreSQL \ 10 \ bin

有什么问题吗?

1 个答案:

答案 0 :(得分:0)

您还需要share/extension/文件夹中的plr.control和相应的sql文件。

只要Windows注册表R_HOME中包含正确的信息,

Newer version of PL/R在Windows上就不再需要HKLM\SOFTWARE\R-core\R。卸载旧版本的R可能会删除它!