运行命令:sql
brew info postgresql
而后信息里有提示数据库
创建postgres用户便可post
/usr/local/Cellar/postgresql/9.2.4/bin/createuser -s postgres
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