我正在尝试在 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:Win64 plr.dll for Postgres 10.x, R-3.4.2 (plr-8.3.0.17)
我根据需要将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
有什么问题?