Postgresql Tips

mac下brew安装postgresql后如何启动

运行命令:sql

brew info postgresql

而后信息里有提示数据库

mac下brew安装后使用pgadmin链接本地的时候提示 psql: FATAL: role “postgres” does not exist 的解决办法

创建postgres用户便可post

/usr/local/Cellar/postgresql/9.2.4/bin/createuser -s postgres

添加connectby支持

psql -d dbname -f /usr/local/Cellar/postgresql/9.3.1/share/postgresql/extension/tablefunc--1.0.sql

或者postgresql

psql -d dbname

CREATE EXTENSION tablefunc

也能够直接在pgadmin中选中数据库调出SQL queries面板直接使用上面的命令code

相关文章
相关标签/搜索