1.登录
psql -U '<user name>' -W
2.显示所有数据库
\l
3显示所有用户
\du
4.显示所有表
\dt
5.显示表信息
\d '<table name>'
6.显示所有序列
\ds
7.查看函数
psql 中\df
select prosrc from pg_proc where proname='<your function name>';
8.查看触发器
select * from information_schema.triggers