之前为了尝鲜了,装了最新版的postgresql数据库,而后安装完时序数据库timescaledb报了如下错误无法加载库 "d:/program files/postgresql/11/lib/timescaledb-1.4.2.dll",解决这个问题还是花费了不少时间,写在这希望能帮助遇到同样问题的人。

查找原因

在各种google后,终于在timescaledb的github的issues看到有网友碰到同样的问题。
https://github.com/timescale/timescaledb/issues/1398
在其中找到了答案:

You would need libeay32.dll and ssleay32.dll from the bin folder of the 11.4 installation.
Zip file downloadable from here: https://get.enterprisedb.com/postgresql/postgresql-11.4-1-windows-x64-binaries.zip
应该算官方的一个bug:最新版postgredql-11.5.1缺少两个dll, libeay32.dllssleay32.dll

解决方案

至如下网址下载postgresql-11.4的安装包,然后找到bin下的这两个dll,复制到你安装的postgresql/bin目录下
https://get.enterprisedb.com/postgresql/postgresql-11.4-1-windows-x64-binaries.zip
或者至百度网盘下载我提取出来的dll:
链接: https://pan.baidu.com/s/1ZTRL3ukfABm6rmzyy_-42Q&shfl=shareset 提取码: jdzb