pg_test_timing
命令被引用为有关警告,并具有一些文件.但文件上没有说怎么叫它。
root@machine:~# pg_test_timing
pg_test_timing: command not found
为什么PostgreSQL官方发行版不自动提供它?
转储定位
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
发布于 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的任何内容)添加到您的路径中。
https://stackoverflow.com/questions/48808519
复制相似问题