我已经在Mac上安装了Postgres93.我可以打开应用程序,并通过该应用程序"打开psql",该应用程序打开了一个与psql的命令行界面.

然而,当我输入$ which psql时,不会返回任何内容.安装路径是/Applications/Postgres93.app.如何让$ which psql显示正确的结果?

Mac OS X-小牛

PostgreSQL包,我不太确定.我go 这里下载了它-http://postgresapp.com/

推荐答案

您似乎安装了Heroku's Postgres.app,这是一个用于一次性测试和开发的工具.将Bundle 包的内容添加到PATH x following the instructions in the Postgres.app documentation中-请参阅"命令行工具".

Postgresql相关问答推荐

环境变量在Bash应用程序中没有出现

如何在PostgreSQL中正确删除数据库

在 Windows 上使用 rsync 进行 Postgresql 副本升级

在 postgres/presto/AWS-Athena 中,与 array_agg( (col1, col2) ) 相反的是什么来获得每组多行?

未更改表上的 Postgres 环绕预防

如何通过 DirectFunctionCall 发送 NULL 参数?

联合所有 postgresql Select 子句保留顺序

Windows PSQL 命令行: is there a way to allow for passwordless login?

如何使用 pg_dump 或 psql 从 *.sql 恢复 PostgreSQL 表?

MAC OS X 上的 Postgres 权限被拒绝

PostgreSQL如何连接间隔值'2天'

postgresql 分组和内部连接

如何在 PostgreSQL 中创建 guid

使用 current_setting() 判断值

如何使用 psql 执行 *.sql 文件

如何启动 Postgres 服务器?

向 Postgres 整数数组添加值

带有 WITH 子句的查询时出现 Postgresmissing FROM-clause entry错误

Array Push的 Postgres 数组追加和数组长度

如何将 CSV 数据插入 PostgreSQL 数据库(远程数据库)