【问题标题】:relation "branches" does not exist pgbench-tools and postgresql database scale returned ""关系“分支”不存在 pgbench-tools 和 postgresql 数据库规模返回“”
【发布时间】:2014-12-30 20:22:43
【问题描述】:

我已经使用 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

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

知道要尝试什么吗?

【问题讨论】:

    标签: postgresql ubuntu testing pgpool


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-27
      • 2021-06-19
      • 2013-09-01
      • 1970-01-01
      • 2015-05-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多