表所有者一括变更
select ‘alter table public.‘|| tablename ||‘ owner to appuser;‘ from pg_tables where tableowner=‘postgres‘ and schemaname=‘public‘;
改变操作数据库
HBS=# \c TEST;
查看所有表
HCS=# \dt;
查看表结构
HCS=# \d tablename;
原文:https://www.cnblogs.com/lixiaobin/p/Postgresql.html