首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在Ubuntu中调用pg_test_timing?

如何在Ubuntu中调用pg_test_timing?
EN

Stack Overflow用户
提问于 2018-02-15 13:31:42
回答 1查看 495关注 0票数 0

pg_test_timing命令被引用为有关警告,并具有一些文件.但文件上没有说怎么叫它。

代码语言:javascript
运行
复制
root@machine:~# pg_test_timing
pg_test_timing: command not found

为什么PostgreSQL官方发行版不自动提供它?

转储定位

代码语言:javascript
运行
复制
locate pg_test_timing
/etc/alternatives/pg_test_timing.1.gz
/usr/lib/postgresql/10/bin/pg_test_timing
/usr/share/locale/de/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/locale/es/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/locale/fr/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/locale/ko/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/locale/pl/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/locale/ru/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/locale/sv/LC_MESSAGES/pg_test_timing-10.mo
/usr/share/man/man1/pg_test_timing.1.gz
/usr/share/postgresql/10/man/man1/pg_test_timing.1.gz
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-02-16 09:42:54

有一个引用nn“入门”部分的文档:https://www.postgresql.org/docs/current/static/tutorial-createdb.html

如果您看到类似于以下内容的消息: createdb: command not found 然后,PostgreSQL没有正确安装。要么根本没有安装它,要么您的shell的搜索路径没有设置为包含它。尝试使用绝对路径调用命令: $ /usr/local/pgsql/bin/createdb mydb

(格式化我的)

请对其他二进制文件使用此建议。

要么将/usr/lib/postgresql/10/bin/添加到$PATH,要么使用二进制文件夹的完整路径.

另外,请注意,这并不是"PostgresSQL官方发行版“的问题,而是您在Linux发行版中使用的安装程序.

另外,在docs中也提到了,如果您从源代码*构建它,这将更适合于官方发行的标题):

https://www.postgresql.org/docs/10/static/install-post.html

如果安装到/usr/local/pgsql或默认情况下未搜索程序的其他位置,则应将/usr/local/pgsql/bin (或步骤1中设置-bindir的任何内容)添加到您的路径中。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48808519

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档