【问题标题】:Is pg_test_fsync contrib module in postgresql 9.2 deprecated?postgresql 9.2 中的 pg_test_fsync contrib 模块是否已弃用?
【发布时间】:2013-04-15 22:05:19
【问题描述】:

我已经在装有 Ubuntu 12.04.1 LTS 的机器上安装了 postgresql 9.2.4。根据此文档页面 (http://www.postgresql.org/docs/9.2/static/pgtestfsync.html),似乎 *pg_test_fsync* contrib 模块是 postgresql 9.2.4 的一部分。但是当我检查 *pg_available_extensions* 系统视图以及我系统 /usr/share/postgresql/9.2/extension 上的以下位置时,我找不到这个模块。即使在此处的贡献文档中(http://packages.debian.org/experimental/postgresql-contrib-9.2)似乎也缺少它。

我错过了什么吗?谁能指导我如何在 postgresql 9.2.4 上测试“pg_test_fsync”?

谢谢。

【问题讨论】:

  • 并非所有的 contrib 模块都是扩展。 pg_test_fsync 未被弃用;相反,它是一个非常重要且被大量使用的工具。

标签: postgresql psql fsync


【解决方案1】:

您链接到的手册页是针对命令行工具的,而不是在数据库本身内部运行的函数,因此在查询系统视图以获取可用扩展时不会显示。

虽然Debian package description 没有提到它,但list of files included 却提到了。该列表包括/usr/lib/postgresql/9.2/bin/pg_test_fsync/usr/share/postgresql/9.2/man/man1/pg_test_fsync.1.gz,因此一旦安装了该软件包,您应该可以输入man pg_test_fsync 来确认支持的选项。

【讨论】:

  • 谢谢。我能够在上述位置找到 pg_test_fsync 并且测试运行良好。
猜你喜欢
  • 1970-01-01
  • 2019-09-29
  • 1970-01-01
  • 2013-11-23
  • 2012-06-29
  • 2018-02-15
  • 2015-09-22
  • 2015-06-19
  • 2023-03-08
相关资源
最近更新 更多