pgsql查询所有表名

select relname from pg_stat_user_tables

pg_stat_user_tables是一个系统视图

里面有所有用户定义的表的信息

你可能感兴趣的:(user)