0

我已经使用 pgpoolII-3.3.3 和 pgPoolAdmin 在 ubuntu 12.04 上安装了 postgresql 9.1。

我正在尝试使用 pgbench-tools 进行测试以测量 postgresql 的性能。

所以我移动到 pgbench-tools 所在的目录并配置配置文件。

我尝试执行此命令:

sudo -u postgres ./runset

在此之后,它会出现一条消息“正在删除旧的 pgbench 表”

第一条错误消息(似乎并不重要)是:ERROR: table "accounts does not exist"

之后会出现一条消息:VACUUM creating new pgbench tables

在这之后

creating tables
10000 tuples done
20000 tuples done
...
100000 tuples done
...
vacuum...done.
Run set #1 of 2 with 2 clients scale=1
Running tests using: psql -h localhost -U postgres -p 5432 pgbench
Storing results using: psql -h localhost -U postgres -p 5432 pgbench

在此之后它是“崩溃”:

ERROR: relation "branches" does not exist
LINE 1: select count(*) for branches
ERROR: Attempt to determine database scale returned "", aborting

这可能是一个愚蠢的问题,我无法解决它,因为我对这些系统没有高水平的知识。

关于尝试什么的任何想法?

4

1 回答 1

0

已解决:表“accounts”和“branches”指的是 pgbench 中 Postgres 8.3 及更早版本附带的表名。之后它已更改为 pgbench_*。所以我面临 pgbench-tools 的版本不匹配。从 github https://github.com/gregs1104/pgbench-tools下载 pgbench 工具后解决

于 2015-01-01T20:34:41.617 回答