正如标题所说,我想将PostgreSQL (我使用的是9.6tpc版本)连接到HammerDB,这是一个开源数据库负载测试和基准测试工具(我对TPC-C基准很感兴趣)。
问题是,我可以使用MS SQL Server (2014)进行这种连接,因为它相对容易。但是,我不习惯使用PostgreSQL。当我尝试在HammerDB上创建虚拟用户时(这是要做的第一步,然后您应该能够执行事务),我得到以下错误:
Error in Virtual User 1: Failed to load Pgtcl - Postgres Library Error我对此做了一些研究,发现了这一点,我引用"PostgreSQL is VERY particular about the libraries in its PATH - they have to be the right ones and ONLY the right ones any other configuration will cause errors"的话。
问题是HammerDB无法加载库libpgtcl.dll。他们提到要解决这个问题,应该在安装过程中检查PostgreSQL bin目录是否已经添加到路径中,但在这一点上我完全迷失了方向,我不知道该怎么办。我就是不明白他们的意思和怎么做。
我希望你们中至少有一人能帮助我。我将不胜感激。
提前为我的英语错误道歉,我会说西班牙语。
发布于 2016-11-24 23:59:29
好了,我已经解决了这个问题,而且很简单。
所有的事情都是关于为PostgreSQL设置Windows PATH,我找到了那个here。
Open my Computer ==>
right click inside my computer and select properties ==>
Click on Advanced System Settings ==>
Environment Variables ==>
from the System Variables box select "PATH" ==>
Edit... ==>然后将这个添加到您找到的任何内容的末尾
;C:\PostgreSQL\9.2\bin; C:\PostgreSQL\9.2\lib之后,继续单击OK
就这样。因此,如果您在尝试将PostgreSQL连接到HammerDB时遇到问题,或者通常在尝试使用PostgreSQL工具时,您应该这样做。
https://stackoverflow.com/questions/40779757
复制相似问题