不是 psql 命令:
select c.relname, relkind
from
pg_class c
inner join
pg_roles r on r.oid = c.relowner
where
r.rolname = 'that_owner'
and
c.relkind = 'r'
order by c.relname
Run Code Online (Sandbox Code Playgroud)
如果您想要表格和序列:
and
c.relkind in ('r', 'S')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3740 次 |
| 最近记录: |